Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

engrlaravel's avatar

Laravel scheduling or task scheduling

I want to send emails on expiry dates data in table. I want to run scheduler every five minutes.

I am using Windows Server for my website, so i can not use this command

* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1

what is alternative i can use?

0 likes
5 replies
thijsdejong's avatar

You can run the php artisan schedule:run command using Windows Task Scheduler, just set it up to run every minute. That would be the same behaviour.

engrlaravel's avatar

@snapey : How i can create the job first in laravel? i guess there are many ways to do but i am not sure which one is best

Please or to participate in this conversation.