Laravel debug mode can be enabled or disabled by editing the .env file.
To enable debug mode, set the APP_DEBUG variable to true:
APP_DEBUG=true
To disable debug mode, set the APP_DEBUG variable to false:
APP_DEBUG=false
Laravel Debug Mode Enabled & Disable