Created
June 27, 2016 04:57
-
-
Save shaz-r/9bd9608711291d83c6297a17c9ce76a6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Add the following route to the `App\Http\routes.php`: | |
| ``` | |
| Route::post('artisan-scheduler', function(){ | |
| Artisan::call('schedule:run'); | |
| }); | |
| ``` | |
| And add the following to a `cron.yaml` to the root of the project directory (where composer.json, phpunit.xml etc sit): | |
| ``` | |
| version: 1 | |
| cron: | |
| - name: "artisan-schedule-run" # required - unique across all entries in this file | |
| url: "/artisan-scheduler" # required - does not need to be unique | |
| schedule: "* * * * *" # required - does not need to be unique | |
| ``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!!!!! very clear and simple!