command('heartbeat')->everyMinute(); $schedule->command('requests:gather')->everyFifteenMinutes(); $schedule->command('requests:useragents')->everyFiveMinutes(); $schedule->command('logs:gather')->everyMinute(); $schedule->command('spam:load')->everyMinute(); $schedule->command('load:affiliate-blacklist')->everyMinute(); $schedule->command('affilliates:store')->everyMinute() ->onOneServer(); $schedule->call(function () { DB::table('monthlyrequests')->truncate(); DB::disconnect('mysql'); })->monthlyOn(1, '00:00'); } /** * Register the Closure based commands for the application. * * @return void */ protected function commands() { require base_path('routes/console.php'); $this->load(__DIR__ . '/Commands'); } }