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