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