command('inspire') // ->hourly(); $schedule->call( function(){ $background = new Background(); $background->saveAnimeStats(); })->dailyAt('22:00'); $schedule->call( function(){ $background = new Background(); echo "SaveSeason(): \n"; $background->saveSeason(); sleep(10); echo "\ncheckIfIsAiring(): \n"; $background->checkIfIsAiring(); sleep(10); echo "\nsaveAiringForAll(): \n"; $background->saveAiringForAll(); })->dailyAt('18:00'); #})->everyMinute(); $schedule->call( function(){ $helper = new Helper(); #$helper->createUser( 'll-' ); echo "setIsWatchingForAll(): \n"; $helper->setIsWatchingForAll(); echo "\nsetCalendarForAll(): \n"; $helper->setCalendarForAll(); })->dailyAt('19:30'); #})->everyMinute(); } /** * Register the commands for the application. * * @return void */ protected function commands() { $this->load(__DIR__.'/Commands'); require base_path('routes/console.php'); } }