/** * Display a listing of the resource. * * @return Response */ public function index() { $groups = TeacherGroup::all(); $teachers = Teacher::all(); ///return $article; return response()->view('admin.teacherAdmin', array('teachers' => $teachers, 'groups' => $groups)); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $teacher_groups = TeacherGroup::all(); //return $articles; $teachers = Teacher::all(); ///return $article; return response()->view('site.teachers', array('groups' => $teacher_groups, 'all_teachers' => $teachers, 'cnt' => 1)); }