Skip to content

Instantly share code, notes, and snippets.

@stevenwoodson
Created March 23, 2014 17:31
Show Gist options
  • Save stevenwoodson/9726565 to your computer and use it in GitHub Desktop.
Save stevenwoodson/9726565 to your computer and use it in GitHub Desktop.
Laravel 4 - Handling TokenMismatchException
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