laravel 下 rabbitmq必看

时间:2020-06-02 21:01:52   收藏:0   阅读:113

1,新建queue

php artisan make:Job  queueTest

 

2,变更了queueTest 需要更新 

php artisan  queue:restart

 

3, 查看队列执行情况 

php artisan queue:work

 

4,将数据存入队列

$this->dispatch(new Queue($arr1));//进入队列

原文:https://www.cnblogs.com/shangfz/p/13032712.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!