Created
February 1, 2015 19:54
-
-
Save laracasts/37b0b5e115cb90f30c61 to your computer and use it in GitHub Desktop.
flash example - https://github.com/laracasts/flash
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
/** | |
* Destroy the user's session (logout). | |
* | |
* @return Response | |
*/ | |
public function destroy() | |
{ | |
Auth::logout(); | |
flash()->info('You are now logged out.'); | |
return home(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Or, just
flash('You are now logged in');