/** * Display a listing of the resource. * * @return Response */ public function index() { $profesores = Profesores::all(); return view('profesoreslist')->with(['profesores' => $profesores]); }
/** * Show the form for creating a new resource. * * @return Response */ public function create() { $profesores = Profesores::all(); return view('cursoscreate')->with(['profesores' => $profesores]); }