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.
First, in the main window of the Task Scheduler, scroll down until you see your task name. If you used the name “cron,” it should be found toward the top of the list. Right-click the task and select “Run.” Then, go back to your WSL terminal and type in sudo service cron status , and it should say that cron is running.
Activate Laravel Cron Jobs Scheduler Now to activate the scheduled jobs, run the Cron command. Go to your application from the Applications tab, and then to the Cron Jobs Manager.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With