Hide end user errors using Laravel

-1

I'm starting with Laravel, I got the error that I show below, it's already solved, the detail is that I can not find the way that when an error occurs does not show all those details in the browser. Can you help me with the configuration of Laravel? Thank you.

    
asked by Carlos Daniel Zárate Ramírez 24.10.2018 в 23:39
source

1 answer

1

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

    
answered by 25.10.2018 / 00:04
source