To run Laravel Scheduler on Windows 10, you need to:
- Create a batch file like this and save it:
cd c:\laravel-project\
c:\php5\php.exe artisan schedule:run 1>> NUL 2>&1
Go to the Windows 10 Task Scheduler (the quick way is to press Win+R and enter taskschd.msc ).
Click Create basic task , select When I logon trigger, and then select Start a program → your .bat file.
Check the option Open properties dialog and click Finish .
In the task properties, click Triggers , then click New and add a new trigger. Repeat task every - 1 minute .
Now this task will run the Laravel Scheduler every minute.
Alexey Mezenin
source share