Debugging is a helpful feature for developers to identify the causes of issues. Most of the modern application frameworks provide you the option to enable debug mode. Laravel also provides a good debugger to help the developer identify problems before going to production.
But be careful with debug mode because if it's on in the production server then it can reveal sensitive information about the application and server.
Enable/Disable Debug Mode In Laravel
In order to change Laravel debug mode, you need to modify .env file in the root directory of the application. There is a variable APP_DEBUG which will store the current status of debug mode. By default it's True.
Refer below code
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:Pv58f27htTXJ0W4kUL7y8C4oMuDFtNHNgNI8YvCEoie=
APP_DEBUG=true
APP_URL=http://test.test
To disable it just change APP_DEBUG value to false like the below :