Skip to content

Instantly share code, notes, and snippets.

@jaynarayan89
Created February 8, 2021 08:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaynarayan89/cbb26c0fb3731451828a269386077b16 to your computer and use it in GitHub Desktop.
Save jaynarayan89/cbb26c0fb3731451828a269386077b16 to your computer and use it in GitHub Desktop.
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