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?
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2GkYd2I
via IFTTT
Aucun commentaire:
Enregistrer un commentaire