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);
});
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…