laravel:开启/关闭调试模式(10.27.0)

一,文档地址:

https://learnku.com/docs/laravel/10.x/configuration/14836#701998

二,设置

1,.env中关于调试的默认值:

APP_DEBUG=true

2,关闭调试

APP_DEBUG=false

说明:刘宏缔的架构森林—专注it技术的博客,
网站:https://blog.imgtouch.com
原文: https://blog.imgtouch.com/index.php/2023/10/19/laravel-kai-qi-guan-bi-tiao-shi-mo-shi-10-27/
代码: https://github.com/liuhongdi/ 或 https://gitee.com/liuhongdi
说明:作者:刘宏缔 邮箱: 371125307@qq.com

三,测试效果

1,调试打开时的效果:

2,关闭调试模式时效果:

四,查看laravel框架的版本:

liuhongdi@lhdpc:/data/laravel/dignews$ php artisan --version
Laravel Framework 10.27.0
posted @ 2023-10-21 08:55  刘宏缔的架构森林  阅读(193)  评论(0编辑  收藏  举报