Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel schedule kernel code sample

    /**
     * Define the application's command schedule.
     *
     * @param  IlluminateConsoleSchedulingSchedule  $schedule
     * @return void
     */
    protected function schedule(Schedule $schedule)
    {
        $schedule->command('YOURcommand:YOURswitch')->dailyAt('01:00');
        $schedule->command('queue:work', ['--max-time' => 3600])->withoutOverlapping();
    }
 
PREVIOUS NEXT
Tagged: #laravel #schedule #kernel #code #sample
ADD COMMENT
Topic
Name
8+7 =