command('collect-task')->everyThirtyMinutes(); $schedule->command('collect-task-allocate')->everyThirtyMinutes(); $schedule->command('collect-task-allocate-again')->everyThirtyMinutes(); $schedule->command('collect-equipment-heartbeat-check')->everyMinute(); } /** * Register the commands for the application. * * @return void */ protected function commands() { // 自动引入任务命令 $this->load(__DIR__.'/Commands'); // 引入任务路由 require base_path('routes/console.php'); } }