How to start task scheduler in Windows 10 using Laravel 5.1

I just want to ask how to use the task scheduling feature on a Windows machine (my local machine).

I read the documentation and I noticed that it uses Cron.

Any help really appreciated.

+11
scheduled-tasks laravel
source share
2 answers

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

  1. Go to the Windows 10 Task Scheduler (the quick way is to press Win+R and enter taskschd.msc ).

  2. Click Create basic task , select When I logon trigger, and then select Start a program → your .bat file.

  3. Check the option Open properties dialog and click Finish .

  4. 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.

+31
source share

I still did not run the schedule, the solution was to simply add / d to the path in

 cd c:\laravel-project\ 

in

 cd /dc:\laravel-project\ 
-one
source share

All Articles