コード例 #1
0
 public function index()
 {
     $dates = Logg::getLoggDates();
     $homeView = ['dates' => $dates, 'devices' => Device::getUserDevices(), 'loggs' => count($dates) > 0 ? Logg::getLoggs($dates[0]->date) : []];
     if ($homeView['devices'] == -1) {
         return Redirect::to('/');
     }
     $view = view('template', $this->ViewTemplate)->nest('content', 'home', $homeView);
     return $view;
 }