Esempio n. 1
0
 public function getMyLastedEpisodes($days = 1)
 {
     if ([] == $this->myLatestEpisodes) {
         $this->myLatestEpisodes = Episodes::getLatest($days, $this);
     }
     return $this->myLatestEpisodes;
 }
Esempio n. 2
0
 public function latestAction()
 {
     $this->view->episodes = Episodes::getLatest(7);
     //        dd($this->view->episodes);
     //        (new \Carbon\Carbon())->now()->format('l')
 }