Is there some way to insert a blank option when creating a select input with the Laravel FormBuilder? I have this at the moment but I want to change it
{!! Form::select('tipo_id', ['blank' => ''] + $tipos, null, ['class' => 'form-control']) !!}
Is there some way to insert a blank option when creating a select input with the Laravel FormBuilder? I have this at the moment but I want to change it
{!! Form::select('tipo_id', ['blank' => ''] + $tipos, null, ['class' => 'form-control']) !!}
You cannot do too much better than you are already doing. Secret is to have array first element empty to show blank input.