Skip to content

Instantly share code, notes, and snippets.

@laracasts laracasts/ex.php
Created Feb 1, 2015

Embed
What would you like to do?
/**
* Destroy the user's session (logout).
*
* @return Response
*/
public function destroy()
{
Auth::logout();
flash()->info('You are now logged out.');
return home();
}
@JeffreyWay

This comment has been minimized.

Copy link

commented Feb 1, 2015

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
You can’t perform that action at this time.