Boubou
1 week ago
115
4
Laravel

Question about schedules multiple days per week

Posted 1 week ago by Boubou

Hi all,

regarding schedules of commands.

It is ok to write a command like this?

    $schedule->command('command:emailNewsletters')
    ->timezone('Europe/London')
    ->weeklyOn(2, '5:00')
    ->weeklyOn(4, '5:00')
    ->withoutOverlapping();

For Tuesdays and Thursday.

Is this correct as I do not see in the doc a way to set a double day with time.

Thanks

Please sign in or create an account to participate in this conversation.