/** * Execute the console command. * * @return mixed */ public function fire() { try { $list = new ArticleList(); $list->syncFromServerToDB(); $feed = new ArticleFeed(); $feed->generateFeed(); } catch (Exception $ex) { Log::error('unable to sync articles: ' . $ex->getMessage()); throw $ex; } }
public function getFeed() { $feed = new ArticleFeed(); $feed->load(); return $feed->data; }