When developing locally, the most important thing for us is to turn on the debugging mode, to reduce errors after going online, and to facilitate the problems we encounter during the development process.
.example.env
file, you can directly rename .env
the file.
.env
The definition format of the file is as follows:
// 设置开启调试模式
APP_DEBUG = true
// 其它的环境变量设置
// ...
Once the debugging mode is turned off, no specific error message will be prompted after an error occurs. If you still want to see the specific error message, you can app.php
set it in the file as follows:
// 显示错误信息
'show_error_msg' => true,