4
The following input
works normally, but when I pass it to the syntax of Laravel Collective, says that the variable $servico
does not exist. It does not exist at all, so it should show the value null
).
The syntax of OR
in the Collective
is wrong?
NORMAL INPUT
<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']) !!}