/** * Display a listing of the resource. * * @return Response */ public function Index() { $grupos = Grupos::all(); $materias = Materias::all(); $maestros = Maestros::all(); $alumnos = Alumnos::all(); $alugrupos = Alugrupos::all(); return view('mostrarGrupos', ['grupos' => $grupos], ['materias' => $materias], ['maestros' => $maestros], ['alumnos' => $alumnos], ['Alugrupos' => $alugrupos]); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { // Materias::destroy($id); return \Redirect::route('materias.index'); }
/** * Display a listing of the resource. * * @return Response */ public function index() { // $materias = Materias::all(); return view('Materias.listar', ['materias' => $materias]); }
/** * Display a listing of the resource. * * @return Response */ public function Index() { $materias = Materias::all(); return view('master', ['materias' => $materias]); }