I have specific folder for each user inside storage/app/public
. I'm dynamically changing the public_path as:
$storageConfig = Config::get('filesystems.disks.public');
$storageConfig['root'] = storage_path('app/public/').$userString ;
config()->set('filesystems.disks.public', $storageConfig);
When a user uploads his photo, it will get saved in the path
storage/app/public/$userString/profile_pictures
I used the php artisan command to create the link:
php artisan storage: link
But I have this issue while displaying images. Using symbolic link, images are displayed as:
<img src="">
Images are not loading . What can be the issue? Can someone help?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire