Laravel 5.2 [] 没有连接器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/35317254/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 13:13:17  来源:igfitidea点击:

Laravel 5.2 No connector for []

phplaravellaravel-5laravel-5.2

提问by V4n1ll4

I have just installed Laravel 5.2 and i'm trying to get the reset password feature to work, but i'm getting the following error:

我刚刚安装了 Laravel 5.2,我正在尝试使用重置密码功能,但出现以下错误:

InvalidArgumentException in QueueManager.php line 150:

No connector for []

QueueManager.php 第 150 行中的 InvalidArgumentException:

[] 没有连接器

Does anyone know how to fix this?

有谁知道如何解决这一问题?

My .envfile contains:

我的.env文件包含:

APP_ENV=local
APP_DEBUG=true
APP_KEY=xxx

DB_HOST=localhost
DB_DATABASE=mydb
DB_USERNAME=mydb
DB_PASSWORD=xxx

CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=iron

MAIL_DRIVER=mailgun
MAIL_HOST=smtp.mailgun.org
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=xxx
MAILGUN_DOMAIN=mydomain.co.uk
MAILGUN_SECRET=key-xxx

回答by patricus

Laravel 5.2 removed the IronMQ queue driver. It is no longer included by default.

Laravel 5.2 删除了 IronMQ 队列驱动程序。默认情况下不再包含它。

If you would like to use IronMQ, you will need to use the Laravel Collective IronMQ package.

如果你想使用 IronMQ,你需要使用Laravel Collective IronMQ 包

Once you install this package (installation instructions provided by package), your issue should be resolved.

一旦你安装了这个包(包提供的安装说明),你的问题应该得到解决。

回答by Jim Rubenstein

Check your config/queue.phpfile to make sure the driverproperty is set to env('QUEUE_DRIVER').

检查您的config/queue.php文件以确保该driver属性设置为env('QUEUE_DRIVER').

Also make sure that the iron-mq dependency is met (documented in the Laravel 5.2 Queue Configuration)

还要确保满足 Iron-mq 依赖项(记录在Laravel 5.2 队列配置中