/** * Get Publisher Names * * @return array */ function getPublisherNames() { $data = []; $feeds = \XFed\FeedUrl::keyValue(); foreach ($feeds as $id => $url) { $parsed = readFeed($url); $data[$id] = $parsed['PublisherInfo']['Name']; } return $data; }
public function index() { ini_set('max_execution_time', 120); if ($this->request->exists('feed_url')) { $feed = FeedUrl::find($this->request->input('feed_url')); } else { $feed = FeedUrl::first(); } $parsed = readFeed($feed->url); $feeds = FeedUrl::keyValue(); //dd($parsed); $vars = ['feeds' => $feeds, 'contents' => $parsed['PositionOpening'], 'organizationName' => $feed->publisher_name, 'feedSelected' => $feed->id]; return view('pages.jobs.main', $vars); }