Skip to content

Instantly share code, notes, and snippets.

@blantonious
Created November 12, 2020 16:31
Show Gist options
  • Save blantonious/724434d20633b96d2939aebbb518b728 to your computer and use it in GitHub Desktop.
Save blantonious/724434d20633b96d2939aebbb518b728 to your computer and use it in GitHub Desktop.
Hides sensitive information when debug mode is set to true in Laravel project
//Add this to your config/app.php file
'debug_blacklist' => [
'_ENV' => [
'APP_KEY',
'DB_PASSWORD',
'REDIS_PASSWORD',
'MAIL_PASSWORD',
'PUSHER_APP_KEY',
'PUSHER_APP_SECRET',
],
'_SERVER' => [
'APP_KEY',
'DB_PASSWORD',
'REDIS_PASSWORD',
'MAIL_PASSWORD',
'PUSHER_APP_KEY',
'PUSHER_APP_SECRET',
],
'_POST' => [
'password',
],
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment