laravel routing and 404 error

前端 未结 4 1451
予麋鹿
予麋鹿 2020-12-16 04:22

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:         


        
4条回答
  •  孤城傲影
    2020-12-16 05:00

    Just for guys using Laravel 5, there is an errors folder in in the views directory. You just need to create a 404.blade.php file there and it will render this view when there is no route specified for a url

提交回复
热议问题