Laravel 5 - 你如何处理丢失的路线? [重复]

This question already has an answer here:

App::missing is not available and I can't find app/Exceptions/Handler.php It doesn't appear in my app directory:

im http://gyazo.com/ebb7ebaf8cc4b353071df230957c99a4.png

Am I using an old version of laravel or a not-complete source? Because everything works fine, but I want unknown routes to be redirected to some other route, such as a 404 page or a redirect to a homepage.

</div>

You could define a 'general' or 'capture all' route at the end of your routes.php that handle any requests that did not match any of your routes. Then display a view with a 'missing page' message.

Route::any('/', function()
{
    // your redirect code goes here
});