I want to send 2 values to the view with lists
of laravel
admin.horarios.create
The question is this, I have this code:
public function create()
{
$docente = Docente::orderBy('nombre','ASC')
->where('estado',1)
->lists('nombre', 'apellido' 'id');
return view('admin.horarios.create')
->with('docente', $docente);
}
But I have an error, since it only shows me the name and not the last name.
{!! Form::select('id_docente', $docente , null, ['class' => 'form-control input-xs select2']) !!}