I am using spatie/laravel-medialibrary:8.0
.
When I uploaded file, it was saved in storage/public
directory.
1/filename.file_extension, 2/filename.file_extension...
I think 1, 2...
are ids of files.
Is there any way to put different prefix directory according to user?
For example, I want to put like this.
public/storage/user_id/1/filename.file_extension,
I searched about it but couldn't find exact answer,
Can anyone help me?
Thanks
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2TFsYYu
via IFTTT
Aucun commentaire:
Enregistrer un commentaire