protected function schedule(Schedule $schedule) { // $schedule->command('inspire') // ->hourly(); $schedule->call(function () { // Process the Feeds \p4\Libraries\RSSParser::processFeeds(); })->hourly(); $schedule->call(function () { // Process the Feeds \p4\Libraries\RSSParser::updateTagScores(); })->daily(); $schedule->call(function () { // Process the Feeds \p4\Libraries\RSSParser::removeOldArticles(env('ARTICLE_KEEP_DAYS', 90)); })->weekly(); $schedule->call(function () { // Process the Feeds \p4\Libraries\RSSParser::processTrending(); })->daily(); }
public function processFeeds() { #Used for testing the downloading of articles \p4\Libraries\RSSParser::processFeeds(); }
/** * Run the database seeds. * * @return void */ public function run() { // This will automatically populate the feeds with real articles \p4\Libraries\RSSParser::processFeeds(); }