Run Laravel Scheduled Tasks on Windows
The following are instructions for running scheduled tasks defined in a Laravel project on Windows. The Laravel documentation provides instructions for running scheduled tasks using cron jobs on Linux systems. However, cron jobs are not available on Windows. The built-in Windows Task Scheduler can be used to run scheduled tasks instead.
Create a Scheduled Task
- Open Task Scheduler
- Select Create Task...
- Give the task a name and description
- To run the task in the background, select Run whether the user is logged on or not and check the Hidden checkbox.