Laravel 注销功能不起作用?
Laravel Logout functionality not working?
在 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']);
"Undefined index: domain"
web.php
Route::get('logout', 'HomeController@logout');
HomeController.php
public function logout() {
Auth::logout();
Session::flush();
return redirect('/login');
}
我删除了这个
"auth0/login": "~5.0"
来自 composer.json 和 update composer
及其工作..
如果您自己进行自定义注销,您可以将注销方法更改为如下所示
public function logout() {
auth()->logout();
return redirect('/login');
}
然后删除 auth0 包并尝试 运行 composer update
在 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']);
"Undefined index: domain"
web.php
Route::get('logout', 'HomeController@logout');
HomeController.php
public function logout() {
Auth::logout();
Session::flush();
return redirect('/login');
}
我删除了这个
"auth0/login": "~5.0"
来自 composer.json 和 update composer
及其工作..
如果您自己进行自定义注销,您可以将注销方法更改为如下所示
public function logout() {
auth()->logout();
return redirect('/login');
}
然后删除 auth0 包并尝试 运行 composer update