command('unpay_order_set_invalid')->hourly(); // 使用 exec 命令可用于发送命令到操作系统 // $schedule->exec('node /home/forge/script.js')->daily(); } /** * Register the Closure based commands for the application. * * @return void */ protected function commands() { require base_path('routes/console.php'); } }