如何在laravel中制作调试页面?
How to make debug page in laravel?
我在 .env 文件中将模式设置为:APP_DEBUG = false;
现在,当发生错误时,它会显示带有 header 的空白页面:"Error"。
如何为它制作分页?
您可以在 resources/views/errors/xxx.blade.php
中为特定的 HTTP 错误代码创建 Blade 模板。例如,您可以为内部服务器错误设置 resources/views/errors/500.blade.php
,或者为无法找到页面的情况设置 resources/views/errors/404.blade.php
。更多信息:https://laravel.com/docs/5.4/errors#custom-http-error-pages
您在 views/error 文件夹中创建一个模板,其名称位于您希望它处理的错误代码之后,请参阅 https://laravel.com/docs/5.4/errors#custom-http-error-pages
我在 .env 文件中将模式设置为:APP_DEBUG = false;
现在,当发生错误时,它会显示带有 header 的空白页面:"Error"。 如何为它制作分页?
您可以在 resources/views/errors/xxx.blade.php
中为特定的 HTTP 错误代码创建 Blade 模板。例如,您可以为内部服务器错误设置 resources/views/errors/500.blade.php
,或者为无法找到页面的情况设置 resources/views/errors/404.blade.php
。更多信息:https://laravel.com/docs/5.4/errors#custom-http-error-pages
您在 views/error 文件夹中创建一个模板,其名称位于您希望它处理的错误代码之后,请参阅 https://laravel.com/docs/5.4/errors#custom-http-error-pages