我正在使用laravel 4,当我的项目处于生产模式时,我得到"抱歉,找不到您正在寻找的页面." 当我遇到一条不存在的路线时......
当我grep我的代码时,它发现在两个地方:
./vendor/symfony/debug/Symfony/Component/Debug/ExceptionHandler.php:129: $title = 'Sorry, the page you are looking for could not be found.';
./vendor/symfony/debug/Symfony/Component/Debug/Tests/ExceptionHandlerTest.php:52: $this->assertContains('Sorry, the page you are looking for could not be found.', $response->getContent());
Run Code Online (Sandbox Code Playgroud)
不,我想指定处理404的路线,但似乎无法找到如何做到这一点......
有人可能会解释为什么它使用symfony错误处理以及可以找到设置的地方?