Does task scheduling in Lumen work just like in Laravel?

后端 未结 1 1491
闹比i
闹比i 2021-02-13 14:18

You can see task scheduling explained in the latest docs for Laravel, but Lumen\'s docs do not mention this. However, it looks like Lumen\'s Console Kernel file has a schedule m

1条回答
  •  余生分开走
    2021-02-13 14:45

    Yes, yes it does! :) It works exactly the same.

    crontab -e
    

    And then add

    * * * * * php /var/www/domain.com/public_html/artisan schedule:run 1>> /dev/null 2>&1
    

    Come to think of it, the php artisan schedule:run kinda gives it away :p

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