Laravel:How to hide environment variables from debug pages
Some time during development process in production environment we get exception.
The debug page will show all environment variables and their contents. In some cases you may want to obscure certain variables. so laravel provide feature to make them Invisible.
You may do this by updating the
debug_hide option in your
config/app.php configuration file.
return [ 'debug_hide' => [ '_ENV' => [ 'APP_KEY', 'DB_PASSWORD', 'AWS_ACCESS_KEY_ID', 'AWS_SECRET_ACCESS_KEY' ], '_SERVER' => [ 'APP_KEY', 'DB_PASSWORD', 'AWS_ACCESS_KEY_ID', 'AWS_SECRET_ACCESS_KEY' ], '_POST' => [ 'password', ], ], ];