How to work with an Error in Laravel ?



How to work with an Error in Laravel ?..

Answer / rishabh khanna

Errors and exception handling is already configured for you when you start a new Laravel project.
Normally, in a local environment we need to see errors for debugging purposes.
We need to hide these errors from users in production environment.
This can be achieved with the variable APP_DEBUG set in the environment file .env stored at the root of the application.


Note - After changing the APP_DEBUG variable, you should restart the Laravel server.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Laravel PHP Framework Interview Questions

Explain the concept of routing in laravel.

0 Answers  


How to Declaration of namespace ?

1 Answers  


What is controller in laravel?

0 Answers  


Is laravel safe from sql injection?

0 Answers  


What does framework mean in programming?

0 Answers  


Explain what is valet?

0 Answers  


Tell me why laravel over other php frameworks?

0 Answers  


What is the directory structure of laravel 5.6?

0 Answers  


Explain what is laravel

0 Answers  


What is x-csrf-token , how it is different from csrf tokens?

0 Answers  


How to get/set configuration values in laravel?

0 Answers  


Which is better django or laravel?

0 Answers  


Categories