duanbi7247 2017-07-20 12:34
浏览 86

Laravel类型错误:参数1传递给lluminate \ Auth \ Passwords \ PasswordBrokerManager :: createTokenRepository()必须是

I have two types of users, normal and admins.

So i need create other controllers, brokers, etc to make the functionality works correctly.

When i click on "send password reset link" i get this error:

Type error: Argument 1 passed to 
Illuminate\Auth\Passwords\PasswordBrokerManager::createTokenRepository() 
must be of the type array, string given, called in 
/home/vagrant/Code/Manifiesto2017/vendor/laravel/framework/src/Illuminate/Auth/Passwords/PasswordBrokerManager.php on line 71

How to solve it?

  • 写回答

1条回答 默认 最新

  • duanpin2034 2017-07-20 12:39
    关注

    I had the same problem.

    This can happen when you don't set your app key.

    you can set your app key by running php artisan key:generate

    or you can hard code it in config/app.php set the app key you are good to go.

    delete cache /bootstrap/cache.

    then you are good to go.

    I hope this helps

    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?