/** * List of working shifts * * @return \View */ public function getIndex() { $shifts = Workshift::orderBy("id", "desc")->get(); $content = View::make("shifts/list", ["shifts" => $shifts]); return View::make("common/tpl", array("template" => $content)); }