3
I need a select in the form with values from another table. Type:
<select>
<option value="29">Frentista</option>
</select>
I wrote my select like this:
{{ Form::select('set_id_fk', $setores, null, ['class'=>'form-control input-lg']) }}
But in the view is getting like this:
{"set_id": 29, "set_nome": "Frentista"}
I’m using the "laravelcollective/html": "^5.3.0"
in my project.
Can someone help me?
Your
Laravel
is the 5.3?– novic
Possible duplicate of Call to Undefined method Illuminate Database Query Builder::lists()
– novic
Tell me the version of yours
Laravel
and themodel Eloquent
with the fields to post a solution, although your doubt may already exist a duplicate (question that already contains some answer that can also solve your problem), I realized that you posted in the answer below but, in my comment did not make any comments! I can help you clear if you want?– novic