/** * Show the index view. * * @return index */ public function index() { $directions = App\Directions::all(); // $events = App\Events::with('albums')->get(); $events = App\Events::all(); $teachers = App\Teachers::all(); $groups = App\Groups::all(); return view('index', compact('directions', 'events', 'teachers', 'groups')); }
/** * Show the teachers view. * * @return teachers */ public function teachers() { $teachers = App\Teachers::all(); return view('inner.teachers.index', compact('teachers')); }