bipin's avatar
Level 2

how to can set file permission

hello guys i m using aws cloud server recently my project got compromise so i deleted my whole instance and creating new instance in aws cloud on window server and uploading backup file which is hack free(i.e no extra line of code in delivered folder ) now how i can assign read,write,execute permission to each and every file of project folder i.e i don;t have much ideas about permission.

0 likes
3 replies
bobbybouwmann's avatar

The important thing about storing files is that you don't store them in the public directory. You can access all files in the public directory. That's also the reason why the .env file is not in the public directory but a directory above there!

The best place to store files is the storage directory. You can read more on that here: https://laravel.com/docs/5.5/filesystem#the-local-driver

bobbybouwmann's avatar
Level 88

It depends on the file. 644 is fine most of the time ;)

Please or to participate in this conversation.