laravel 定时任务 用起来最方便最优雅的实现方法(2021/2/2号最新修改)
1、使用命令创建laravel定时任务文件
php artisan make:command withdraw
2、在app/console就会看到withdraw.php
3、编辑定时任务
4、编辑App\Console\Kernel 文件
5、调试业务逻辑方法:
php artisan +(刚才定义的别名$signature)
php arti...
原创
2018-12-18 10:55:19 ·
3765 阅读 ·
2 评论