在开发环境中,因为需要频繁的调试
所以我们需要把.env中的APP_DEBUG的值改为true
如APP_DEBUG=true
将项目上传到生产环境后,切记要改为APP_DEBUG=false
我们可以安装扩展包`laravel debugbar`比较直观
如何使用
首先安装`composer require barryvdh/laravel-debugbar --dev`
将本地的话.env文件中需要打开debug=true
>APP_DEBUG=true
然后你就可以在你的项目中去使用调试了
