command('inspire') // ->hourly(); $schedule->call( function(){ $background = new Background(); $background->saveAnimeStats(); })->everyThirtyMinutes()->name('saveStats')->withoutOverlapping(); #})->everyMinute(); $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(); })->twiceDaily(7, 19); #})->everyMinute(); $schedule->call( function(){ $background = new Background(); echo"saveEnhancementForAll()\n"; $background->saveEnhancementForAll(); })->weeklyOn(1, '15:30'); #})->everyMinute(); /* $schedule->call( function(){ $background = new Background(); #$background->checkIfIsAiring(); $background->saveSeason(); #$anime = Anime::where('mal_id', 40591)->get()->first(); #$background->saveAiring( $anime ); })->everyMinute(); #})->twiceDaily(9, 23); */ } /** * Register the commands for the application. * * @return void */ protected function commands() { $this->load(__DIR__.'/Commands'); require base_path('routes/console.php'); } }