Task Scheduling
Laravel's Tasks Scheduling is also offered by the Console Application.
Define Tasks
The Console Package contains examples of how to define scheduled tasks and how to register them.
Run Scheduled Tasks
Just like Laravel, you need to add the schedule:run
command to your Cron. Review Laravel's documentation for more information about how to run scheduled tasks
* * * * * cd /your-project-path && php cli.php schedule:run >> /dev/null 2>&1
Run Scheduled Tasks in Windows
It is possible to use Windows Tasks Scheduler, in order to utilise Laravel's scheduled tasks. Waleed Ahmed wrote a nice article about how to use Task Scheduler on Windows 10.
Limitations
Scheduled Queued Jobs are not support by default. You have to add Laravel's Queue package by on your own, in order to gain access to this feature.