Answers for "laravel schedule kernel code sample"

PHP
0

laravel schedule kernel code sample

/**
     * 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();
    }
Posted by: Guest on October-10-2021

Browse Popular Code Answers by Language