I'm populating a select with the result of a query like this:
on controller
$departaments = \App\Departament::All()->sortBy('name')->lists('name','id');
on view
<div class="form-group">
{!! Form::select('departament', $departaments, null, ['class'=>'form-control']) !!}
</div>
but must later add a blank row to select.
How do I do that?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community