Created
March 23, 2014 17:31
-
-
Save stevenwoodson/9726565 to your computer and use it in GitHub Desktop.
Laravel 4 - Handling TokenMismatchException
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
App::error(function(\Illuminate\Session\TokenMismatchException $exception) | |
{ | |
return Redirect::back()->withErrors('Your session has expired. Please try again.'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment