Laravel Scheduler with Cron Job

前端 未结 1 1947
孤独总比滥情好
孤独总比滥情好 2021-01-26 01:43

I\'m using larave 5.1 with php5, i try to create my cron job to remove unpaid invoice in time i want, but i testing it to print an userlog to help me know that the job is workin

相关标签:
1条回答
  • 2021-01-26 02:09

    Starting sheduler

    Here is the only Cron entry you need to add to your server:

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

    This Cron will call the Laravel command scheduler every minute. Then, >Laravel evaluates your scheduled tasks and runs the tasks that are due.

    You need start the cron, no run php artisan schedule:run in the console.

    0 讨论(0)
提交回复
热议问题