Where should we store data (files) from users in Laravel architecture? -
i have project meant work countries. now, in example lets says usa-(us
) , france-(fr
).
so, when user write in url us_mysite.com
, system should open files, or display pictures related only, not fr
at point user need update file (pdf, excel, pictures, videos, etc) , system must store these files inside correct country.
so have in site root structure this:
www/mystie/ ... ... data/ us/ excel/ pdf/ fr/ ... img/ us/ fr/ ... ...
now migrating system laravel 5 , know should put data folder. should inside public/
folder? folder should accessible delete, read, changes , save files trough process.
this quote laravel doc: https://laravel.com/docs/master/structure#the-public-directory
the storage/app/public directory may used store user-generated files, such profile avatars, should publicly accessible. should create symbolic link @ public/storage points directory. may create link using php artisan storage:link command.
Comments
Post a Comment