The following input
works normally, but when I move it to the Laravel Collective syntax, it says that the $servico
variable does not exist. It does not even exist, so it should display the value null
).
The syntax of OR
in Collective
is wrong?
INPUT NORMAL
<input type="text" name="nome" value="{{ $servico->cliente->nome or null }}" id="cliente" class="form-control" placeholder="Nome do cliente">
INPUT COLLECTIVE
{!! Form::input('text', 'nome', $servico->cliente->nome or null, ['id' => 'cliente', 'class' => 'form-control', 'placeholder' => 'Nome do cliente']) !!}