The “--queued” option does not exist in Laravel 5.4

狂风中的少年 提交于 2019-12-02 23:48:51

The option --queued, was introduced in Laravel 5.0, and remained an option until version Laravel 5.1 https://laravel.com/docs/5.1/queues#writing-job-classes

Since Laravel version 5.2 onwards, --queued was deperecated as by default all newly created jobs are "queued". So your question was about version 5.4, you should create the job without the queued option as below:

artisan make:job SendSMSMessages

And here's the documentation reference for Jobs in Version 5.4 https://laravel.com/docs/5.4/queues#creating-jobs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!