Spatie Laravel Media Library general question
Coming from the structure of one directory with many images I used for years in all of my projects, switching to Spatie way of having one directory for one photo, I just wanted to know is there any limit or downside of having this structure? I intend to have thousands of photos (making my hobby portfolio of photos I made for almost 20 years), so if there is a limit (or downside, slowdown...) it would be a good thing to know in advance.
2 Replies
not really, however I ended up changing it (ultimately decided to not use spatie's package) because for me it has to save to a (sub)folder of a project, some users directly access the file server (since it also keeps document related to the project), its very cumbersome to have a folder for each picture in my case
https://spatie.be/docs/laravel-medialibrary/v11/advanced-usage/using-a-custom-directory-structure
Since I am using only images I won't have problem as you did.
Just wondering will I have problems with too many directories down the road.