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

How can we get data between two dates using query in laravel?

0 Answers  


Why we use csrf token in laravel?

0 Answers  


Is laravel support caching? Explain

0 Answers  


What is service provider in laravel?

0 Answers  


Define laravel guard.

0 Answers  






How we can get user's detail when he is logged in using auth?

0 Answers  


Explain api.php route.

0 Answers  


What is remember token in laravel?

0 Answers  


What is technology service provider?

0 Answers  


How do I add a 3rd party package to your application like laravel-emoji?

0 Answers  


What is facade and how it is used in laravel?

0 Answers  


Explain how to enable multiple php versions in homestead?

0 Answers  


Categories