laravel routing and 404 error
laravel, laravel-4, routes
Solution
You can add this to your filters.php file:
App::missing(function($exception)
{
return Response::view('errors.missing', array(), 404);
});
And create the `errors.missing` view file to show them the error.
Also take a look at the Errors & Logging docs
EDIT
If you need to pass data to that view, the second parameter is an array you can use:
App::missing(function($exception)
{
return Response::view('errors.missing', array('url' => Request::url()), 404);
});
Problem
I want to specify that if anything entered in the url address other than existing routes (in routes.php, then show 404 page. I know about this: ``` App::abort(404); ``` but how can I specify the part where everything else except the routes defined?