How to protect .env file in Laravel

后端 未结 6 1002
甜味超标
甜味超标 2021-01-11 11:30

I moved my project to HOST but I can still access .env with address mysite.com/.env and display this file with all variables and secure data. my .env file :

         


        
6条回答
  •  梦毁少年i
    2021-01-11 11:50

    You should change permission all folder on your app to 741, except bootstrap and storage and public (755).

提交回复
热议问题