public function fetchRssFeeds() { $rssList = $this->rssService->getRssList(); foreach ($rssList as $rss) { $this->rssNewsFeedsService->fetch($rss); } return true; }
/** * @return \Illuminate\Http\RedirectResponse */ public function fetch() { $rssList = $this->rssService->getRssList(); foreach ($rssList as $rss) { $this->rssNewsFeeds->fetch($rss); } return redirect()->route('rssnewsfeeds.index')->with('success', 'Rss Feeds fetched successfully'); }