I'm having a hard time making a Form:select
that fetches information from the database.
How is Controller
;
public function create()
{
return View('internos.create');
}
As it is in View
;
<div class="form-group">
{{ Form::label('setor', 'Setor: ') }}
{{ Form::select('setor_id',
array(''=>'Selecione...')+ Setor::all()->lists('descricao', 'id'),
null, array('class'=>'form-control'))
}}
</div>