Created
February 8, 2021 08:57
-
-
Save jaynarayan89/cbb26c0fb3731451828a269386077b16 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In Auth\LoginController you have: | |
use AuthenticatesUsers; | |
Change it to: | |
use AuthenticatesUsers { | |
logout as performLogout; | |
} | |
Then, define a new logout() method in your LoginController: | |
public function logout(Request $request) | |
{ | |
$this->performLogout($request); | |
return redirect()->route('your_route'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment