Laravel 4 Exception: NotFoundHttpException

后端 未结 6 853
时光说笑
时光说笑 2020-12-30 07:14

My Laravel 4 application\'s logs sometimes show a NotFoundHttpException:

exception \'Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpExce         


        
6条回答
  •  醉话见心
    2020-12-30 07:30

    I got this problem because I had capitalized the name of a parent directory and didn't capitalize it in the URL. That's why I got the error.

    I was using this url localhost/laravel/todo2/public/foo and in fact it worked if all I typed was: localhost/Laravel/todo2/public/ but if I typed anything after the public/ it would give that error.

    if I used this with Laravel capitalized localhost/Laravel/todo2/public/foo

    the routes after public/ would work

提交回复
热议问题