For Running Cron job in Laravel . . . . .
After installing Laravel You have to
1) Create a New Command
php artisan make:command DemoCron --command=demo:cron
Now make some shancegs in your commands
in the app/Console/Commands directory.
2) Register as a Task scheduler
Go to app/Console/Kernel.php
3) Run Command
php artisan schedule:run
https://www.itsolutionstuff.com/post/laravel-8-cron-job-task-scheduling-tutorialexample.html
No comments:
Post a Comment