在laravel 5.7中,当我单击注销按钮时,注销功能不起作用,它向我显示此错误/var/www/html/orderManager/vendor/auth0/login/src/Auth0/Login/Auth0Service.php$this->authApi = new Authentication($this->auth0Config['domain'], $this->auth0Config['client_id']);“未定义的索引:域”web.phpRoute::get('logout', 'HomeController@logout');HomeController.phppublic function logout() { Auth::logout(); Session::flush(); return redirect('/login'); }
2 回答

Cats萌萌
TA贡献1805条经验 获得超9个赞
如果您自己进行自定义注销,则可以将注销方法更改为如下所示
public function logout() {
auth()->logout();
return redirect('/login');
}
然后删除auth0软件包并尝试运行composer更新
- 2 回答
- 0 关注
- 123 浏览
添加回答
举报
0/150
提交
取消