Skip to content

Instantly share code, notes, and snippets.

@laracasts
Created February 1, 2015 19:54
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laracasts/37b0b5e115cb90f30c61 to your computer and use it in GitHub Desktop.
Save laracasts/37b0b5e115cb90f30c61 to your computer and use it in GitHub Desktop.
/**
* Destroy the user's session (logout).
*
* @return Response
*/
public function destroy()
{
Auth::logout();
flash()->info('You are now logged out.');
return home();
}
@JeffreyWay
Copy link

Or, just flash('You are now logged in');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment