Created
July 5, 2013 13:28
-
-
Save dominicmartineau/5934521 to your computer and use it in GitHub Desktop.
To handle 404 in Laravel 4, put this code into app/start/global.php...
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::missing(function($exception) | |
{ | |
return Redirect::route('404'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment