App::missing(function() {
return View::make('404');
});
Note that whilst debug is enabled the 404 page will not be shown as the exception is handled by the debugger.
Thank you. I found it:
Route::get('{test}', function($test) { // check your DB for $test, get the page, etc... })->where('test', '^.*');
Which is better?
Using the App::missing()
would be better as that way you're getting access to the proper NotFoundHttpException
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community