I just want to ask how to use it's task scheduling feature on windows machine (my local machine).
I've read it's documentation and I've notice that it's using a Cron.
Any help is truly appreciated.
I just want to ask how to use it's task scheduling feature on windows machine (my local machine).
I've read it's documentation and I've notice that it's using a Cron.
Any help is truly appreciated.
To run Laravel Scheduler in Windows 10 you need:
cd c:\laravel-project\
c:\php5\php.exe artisan schedule:run 1>> NUL 2>&1
Go to Windows 10 Task Scheduler (fast way is press Win+R
and enter taskschd.msc
).
Click Create basic task
, choose When I logon
trigger and then choose Start a program
-> your .bat
file.
Check Open properties dialog
option and click Finish
.
In task properties click Triggers
, then click New
and add new trigger Repeat task every - 1 minute
.
Now this task will run Laravel scheduler every one minute.
I still did not run the schedule, the solution was just to add / d to the path in
cd c:\laravel-project\
in
cd /d c:\laravel-project\