laravel - Laravel 5.7 帐户验证电子邮件给出“非法偏移类型”异常
问题描述
我实现了 Laravel 的身份验证。除帐户验证外,一切正常。当我Signup/Regiser
收到Account Verification
带有verification link
. 当我单击提供的链接以验证我的帐户时,我得到了关注Exception
ErrorException (E_WARNING)
Illegal offset type
/var/www/html/myproject/vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php
public function __construct($app)
{
$this->app = $app;
$this->userResolver = function ($guard = null) {
return $this->guard($guard)->user();
};
}
/**
* Attempt to get the guard from the local cache.
*
* @param string $name
* @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard
*/
public function guard($name = null)
{
$name = $name ?: $this->getDefaultDriver();
return $this->guards[$name] ?? $this->guards[$name] = $this->resolve($name);
}
解决方案
推荐阅读
- geometry - 如何在通用映射工具中创建包含与像素 grd 相交线的 grd?
- python - 将线程限制在一定数量并通过列表
- android - 条纹样式的进度条?
- android - 来自谷歌的 install_referrer 邮件
- mysql - SQL 从超集中选择不相交的元素
- c# - 试图让用户控件加载 MainWindow 上可用的连接字符串(WPF,C# 相关)
- python - 为什么 Tkinter 不显示按钮?
- python - 通过 pip 安装 distorm3 会导致 Windows SDK 构建错误
- batch-file - Batch Echo Style:一次写入两个文件
- python - 变量资源管理器中的数据不可用于 Spyder 4 中的调试