Created
November 12, 2020 16:31
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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