0 points

Conditional command to run every 2 weeks


dashboard

Wed Dec 02 2020 07:34:52 GMT+0000 (UTC)

Posted by @eneki

$schedule->command('crm:top-producers-two-weeks-ago')->weekly()->fridays()
            ->when(function () {
                return date('W') % 2;
            })->at("01:38")->withoutOverlapping;
content_copy Copy