/** * List out all the projects. * * @return \Illuminate\Support\Collection */ public function all() { if ($projects = Cache::get('projects')) { return $projects; } $projects = $this->objectify($this->request('GET', '/projects.xml')['project']); Cache::put('projects', $projects); return $projects; }
/** * Cache the farewell log for today. * * @return void */ private function cacheTimeOut() { Cache::put('time:out', true); }
/** * Cache the greeting log for today. * * @return void */ private function cacheTimeIn() { Cache::put("time:in", true); }