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
Where do you regiser service providers?
Explain how to add csrf protection in laravel?
What is service container in laravel?
What are the types of service providers?
Differce between contracts and facades?
Explain how to bind a service container to a service provide?
How to create a controller in laravel?
List the software’s included in laravel homestead?
What are the Writing Gates and Policies ?
What is a laravel collection?
Explain the directory structure of laravel 5.6.
What is homestead.yaml?
List out the databases laravel supports?
What is uri in laravel?
How do you call artisan command in laravel?