1
I need to put a value on this Form
:
{{Form::label('genre','Escolha a categoria') }}
{{Form::select('genre',$options->getGenresClassificados(),null,['class'=>'form-control'])}}
1
I need to put a value on this Form
:
{{Form::label('genre','Escolha a categoria') }}
{{Form::select('genre',$options->getGenresClassificados(),null,['class'=>'form-control'])}}
Browser other questions tagged php laravel
You are not signed in. Login or sign up in order to post.
Your question lacks many details, that is, it is not clear enough!
– novic
this is the result <option value="0">GYM/FITNESS</option> need to look like this <option value="GYM/FITNESS">GYM/FITNESS</option> got it?
– user100984
What returns
getGenresClassificados()
?– novic
categories <option value="0">GYM/FITNESS</option>
– user100984
I need it to stay that way <option value="GYM/FITNESS">GYM/FITNESS</option>
– user100984
you need to fix the return of
options->getGenresClassificados()
there is nothing else to do for you regarding the fragile content of the question.– novic
in html would look like this <select name="Genre"> @foreach($options->getGenresClassified() as $category) <option value= " {{ $category }} "> {{$category}} </option> @endforeach </select>
– user100984