Skip to content

Commit

Permalink
Update AuthenticatesUsers.php
Browse files Browse the repository at this point in the history
Added function loggedOut based on registered and authenticated methods from Laravel authentication scaffold.
  • Loading branch information
guizoxxv committed Jul 1, 2018
1 parent 1ce5f49 commit e4a00e8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/Illuminate/Foundation/Auth/AuthenticatesUsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,18 @@ public function logout(Request $request)

$request->session()->invalidate();

return redirect('/');
return $this->loggedOut($request) ?: redirect('/');
}

/**
* The user has logged out.
*
* @param \Illuminate\Http\Request $request
* @return mixed
*/
protected function loggedOut(Request $request)
{
//
}

/**
Expand Down

0 comments on commit e4a00e8

Please sign in to comment.