Search code examples
phplaravel-5.7

Laravel Logout functionality not working?


In laravel 5.7 Logout functionality not working when im going to click logout button it show me this error /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"

enter image description here

web.php

Route::get('logout', 'HomeController@logout');

HomeController.php

public function logout() {
        Auth::logout();
        Session::flush();
        return redirect('/login');
    }

Solution

  • i remove this

    "auth0/login": "~5.0" 
    

    from composer.json and update composer and its working..