コード例 #1
0
 /**
  * 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'));
 }
コード例 #2
0
 /**
  * Show the directions view.
  *
  * @return directions
  */
 public function directions()
 {
     $directions = App\Directions::all();
     return view('inner.directions.index', compact('directions'));
 }