Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function create()
- {
- $docente = Docente::orderBy('nombre','ASC')
- ->where('estado',1)
- ->lists('nombre', 'apellido' 'id');
- return view('admin.horarios.create')
- ->with('docente', $docente);
- }
- {!! Form::select('id_docente', $docente , null, ['class' => 'form-control input-xs select2']) !!}
- public function getFullnameAttribute()
- {
- return [$this->nombre . ' ' . $this->apellido];
- }
- $docente = Docente::orderBy('nombre', 'ASC')
- ->where('estado', 1)
- ->pluck('fullname', 'id');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement