Conditional command to run every 2 weeks
Wed Dec 02 2020 07:34:52 GMT+0000 (UTC)
Saved by
@eneki
$schedule->command('crm:top-producers-two-weeks-ago')->weekly()->fridays()
->when(function () {
return date('W') % 2;
})->at("01:38")->withoutOverlapping;
content_copyCOPY
Comments