every 5 minutes on day 4
$schedule->command('email:subscriptions')->cron('*/5 * * * 4');
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I created a schedule task for an artisan command which I want to run only on thursdays every 5 minutes.
The code looks like this:
$schedule->command('email:subscriptions')->thursdays()->everyFiveMinutes();
It looks like that the thursdays() method will be ignored because the command runs also on other days then thursday.
Does someone knows how to solve this?
Second question: Does someone know how i create a task wich runs every 5 minutes only on monday between 15:00 and 16:00?
It may that you forgot the weekly clause?
$schedule->command('email:subscriptions')->weekly()->thursdays()->everyFiveMinutes();
Please or to participate in this conversation.