How to work with an Error in Laravel ?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you describe fillable attribute in a laravel model?

536


What is route group in laravel?

554


How to remove a complied class file?

518


What is blade php in laravel?

596


What do you mean by laravel mix?

532


Is laravel support caching? Explain

543


How to stop valet?

524


How to use laravel framework in php?

503


Tell me what is service providers?

589


How to install laravel by composer?

566


How to configure cron jobs in homestead?

506


List out some artisan commands?

509


How to create route name in laravel 5?

587


Why doesn't laravel use semantic versioning?

537


Where can I learn laravel?

501