/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $niveles = Niveles::all(); return view('Docentes.Editar', ['docente' => Docentes::findOrFail($id), 'niveles' => $niveles]); }
/** * Display a listing of the resource. * * @return Response */ public function index() { // $niveles = Niveles::all(); return view('Niveles.listar', ['niveles' => $niveles]); }