Help in Laravel form

Asked

Viewed 39 times

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'])}}
  • Your question lacks many details, that is, it is not clear enough!

  • this is the result <option value="0">GYM/FITNESS</option> need to look like this <option value="GYM/FITNESS">GYM/FITNESS</option> got it?

  • What returns getGenresClassificados()?

  • categories <option value="0">GYM/FITNESS</option>

  • I need it to stay that way <option value="GYM/FITNESS">GYM/FITNESS</option>

  • you need to fix the return of options->getGenresClassificados() there is nothing else to do for you regarding the fragile content of the question.

  • in html would look like this <select name="Genre"> @foreach($options->getGenresClassified() as $category) <option value= " {{ $category }} "> {{$category}} </option> @endforeach </select>

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.