0
I have a problem and I have already searched the internet for the solution. Unsuccessful!
I have a form and inside it, a select filled automatically:
{!! Form::select('categoria_id', $categorias, null, ['class' => 'form-control']) !!}
Okay, it works. But I need to create a option with empty value. Type: "Select an option", here’s the problem. I’ve tried several ways, but what I found was for another version of Laravel and nothing done.
how is the object
$categorias
?{!! Form::select('categoria_id', array_add($categorias, '', 'Selecione uma opção'), null, ['class' => 'form-control']) !!}
will solve?– Leandro Amorim
@Leandro Amorim, thanks for your help.
– buback