Esempio n. 1
0
 protected static function getLogbooks($range)
 {
     $id = intval($range);
     if ($range == 'all') {
         return Logbook::all();
     } elseif ($id != 0) {
         return [Logbook::find($id)];
     } else {
         return [Logbook::first()];
     }
 }
Esempio n. 2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     return View::make('logbooks.index')->with('logbooks', Logbook::all());
 }
Esempio n. 3
0
 /**
  * Display a listing of logs
  *
  * @return Response
  */
 public function index()
 {
     $logs = Logbook::all();
     return View::make('logs.indexlogbook', compact('logs'))->withTitle('Log Book');
 }