📜  laravel 调度内核代码示例 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:05.240000             🧑  作者: Mango

代码示例1
/**
     * Define the application's command schedule.
     *
     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
     * @return void
     */
    protected function schedule(Schedule $schedule)
    {
        $schedule->command('YOURcommand:YOURswitch')->dailyAt('01:00');
        $schedule->command('queue:work', ['--max-time' => 3600])->withoutOverlapping();
    }