コード例 #1
0
 public function home()
 {
     if ($this->auth->check()) {
         $events = new Event();
         $future = $events->future();
         $present = $events->present();
         $past = $events->past();
         return view('pages/dashboard', compact('future', 'present', 'past'));
     } else {
         return view('pages/home');
     }
 }