public function index() { $profesores = Profesor::all(); return $this->crearRespuesta($profesores, 200); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $profesor = Profesor::all(); return view('profesor.index', compact('profesor')); }