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 to get current route name?

404


What is the boot method?

450


What is console in laravel?

406


Explain request life cycle of laravel.

498


Tell us what are advantages of laravel?

419






What are the difference between laravel 5 & laravel 4?

405


Can you update homestead?

411


What is database migration? And how to use it to add insert initial data to database?

400


Define implicit controller.

428


what are Important Points contracts in Laravel ?

932


Explain the difference between laravel 4 and laravel 5?

450


What is query builder in laravel?

420


What are laravel eloquent?

426


Tell me why doesn't laravel use semantic versioning?

393


How to create custom middleware in laravel?

437