It is advisable to write code that catches and manages errors during program execution.
The debug
option in the config/app.php
configuration file determines how much information about an error is shown to the user.
You can modify the value of the environment variable APP_DEBUG
, which is stored in your file .env
, passing a boolean to activate or deactivate this feature.
At the time of development is assigned the value true
and when the application is in production is assigned false
to avoid exposing sensitive information to users.
Handling errors