/** * Show staff page * GET * * @return Response */ public function ShowStaff() { $staffs = \Cache::remember('staff', 60, function () { return \App\Model\Staff::join('accounts', 'accounts.guid', '=', 'cms_staffs.account_id')->orderBy('rank', 'asc')->get(); }); return view('misc.staff', compact('staffs')); }
/** * Show servor's staff * GET * * @return Response */ public function showStaff() { $staffs = Cache::remember('staffs', 60, function () { return \App\Model\Staff::all(); }); return view('misc.staff', compact('staffs')); }