Esempio n. 1
0
 /**
  * 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;
 }
Esempio n. 2
0
 /**
  * Cache the farewell log for today.
  *
  * @return void
  */
 private function cacheTimeOut()
 {
     Cache::put('time:out', true);
 }
Esempio n. 3
0
 /**
  * Cache the greeting log for today.
  *
  * @return void
  */
 private function cacheTimeIn()
 {
     Cache::put("time:in", true);
 }