Laravel Setting the scheduler to run


The scheduler can be run using the command:

php artisan schedule:run

The scheduler needs to be run every minute in order to work correctly. You can set this up by creating a cron job with the following line, which runs the scheduler every minute in the background.

* * * * * php /path/to/artisan schedule:run >> /dev/null 2>&1