Tuesday, February 28, 2017

how manage personal data of user in laravel?

i give data like photo's and document from users and i will save it in this path :

storage/app

i make folder for every user with this code :

$request->file('file')->store('storage/'.$request->user()->id);

name of folder is just user-id , so

is this right way , to manage personal data of user ? if its not, please give me solution,

i searched a lot but everyone just say dont do that, but what shall i do?




via Hosein

Advertisement