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()]; } }
/** * Display a listing of the resource. * * @return Response */ public function index() { return View::make('logbooks.index')->with('logbooks', Logbook::all()); }
/** * Display a listing of logs * * @return Response */ public function index() { $logs = Logbook::all(); return View::make('logs.indexlogbook', compact('logs'))->withTitle('Log Book'); }