Skip to content

Commit

Permalink
docs: improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis authored Jan 6, 2023
1 parent 924c89c commit 27db557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controllers/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ protected function getValidationRules(): array
public function logoutAction(): RedirectResponse
{
// Capture logout redirect URL before auth logout,
// otherwise 'Call to a member function inGroup() on null' is thrown
// otherwise you cannot check the user in `logoutRedirect()`.
$url = config('Auth')->logoutRedirect();

auth()->logout();
Expand Down

0 comments on commit 27db557

Please sign in to comment.