Does anybody know how can I set in my select box the first option to empty value?
I\'m getting the data from my DB, and I would like to set the option by default as \"P
100% result:
In controller:
$users = App\User::get()->lists('full_name', 'id')->prepend('Select user',''); return view('name of view')->with('users', $users);
In view:
{!! Form::select('who', $users, null, ['class' => 'form-control inline']) !!}
I´m using "laravelcollective/html":"^5.3.0" package