Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. public function create()
  2. {
  3.  
  4. $docente = Docente::orderBy('nombre','ASC')
  5. ->where('estado',1)
  6. ->lists('nombre', 'apellido' 'id');
  7.  
  8. return view('admin.horarios.create')
  9. ->with('docente', $docente);
  10.  
  11. }
  12.  
  13. {!! Form::select('id_docente', $docente , null, ['class' => 'form-control input-xs select2']) !!}
  14.  
  15. public function getFullnameAttribute()
  16. {
  17. return [$this->nombre . ' ' . $this->apellido];
  18. }
  19.  
  20. $docente = Docente::orderBy('nombre', 'ASC')
  21. ->where('estado', 1)
  22. ->pluck('fullname', 'id');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement