You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm developing a community system I manage to upload a user profile photo to another disk but when I retrieve the Image it targets the default disk. The disk name is profile and the path is media/profile and the media collection is 'profile'
This is what I'm doing $profile->getMedia('profile')->first()->getUrl('thumb'))
When check the image path is using the default system which is public/storage instead of public/media/profile
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm developing a community system I manage to upload a user profile photo to another disk but when I retrieve the Image it targets the default disk. The disk name is
profile
and the path ismedia/profile
and the media collection is 'profile'This is what I'm doing
$profile->getMedia('profile')->first()->getUrl('thumb'))
When check the image path is using the default system which is
public/storage
instead ofpublic/media/profile
how to specify disk on retrieving images
Beta Was this translation helpful? Give feedback.
All reactions