Created
August 4, 2021 03:04
-
-
Save ThatLadyDev/9995fdfe9bcb6d82e9f6bf6fb2706de0 to your computer and use it in GitHub Desktop.
How to disable .env file from showing in the browser publicly (Laravel)
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
# Make sure you write the following in the htaccess file of the laravel application | |
<Files .env> | |
order allow,deny | |
Deny from all | |
</Files> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment