Skip to content

Instantly share code, notes, and snippets.

@ThatLadyDev
Created August 4, 2021 03:04
Show Gist options
  • Save ThatLadyDev/9995fdfe9bcb6d82e9f6bf6fb2706de0 to your computer and use it in GitHub Desktop.
Save ThatLadyDev/9995fdfe9bcb6d82e9f6bf6fb2706de0 to your computer and use it in GitHub Desktop.
How to disable .env file from showing in the browser publicly (Laravel)
# 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