public function fetchRssFeeds() { $rssList = $this->rssService->getRssList(); foreach ($rssList as $rss) { $this->rssNewsFeedsService->fetch($rss); } return true; }
/** * @param $all * * @return mixed */ public function save($all) { $rss = $this->rss->save($all); $this->rssNewsFeedsService->insertFeeds($rss->id, $this->rssNewsFeedsService->getRssItems($all['url'], 10)); return $rss; }