How can I stop this tendency of multiple folders #3556
Unanswered
amowogbaje
asked this question in
Q&A
Replies: 1 comment
-
Create custom path generator. But don't recommend you to remove id's folders cause of library will work wrong without ids |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
$media = auth()->user()->addMedia($this->upload)->toMediaCollection('images', 'uploads');
The code above storing each images I uploaded in a folder named by the media->id value.
How can I stop this , I don't want to touch the code in the /\vendor\spatie\laravel-medialibrary\src\Support\PathGenerator\DefaultPathGenerator.php
Please what can I do

Beta Was this translation helpful? Give feedback.
All reactions