#Avatar On Top Bar Not Appear

16 messages · Page 1 of 1 (latest)

ashen leaf
#

Hi. i have an issue with avatar on top bar not appear . My file storage ,app url already being set properly . In UserResource . the image appeared at the table as you guys can see in the pics . is there anything that i missing to setup ?

boreal mangoBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

sharp skiff
#

It is not set correctly, otherwise it would load 😉

dd on the avatar and see the result, can you access it? IF you can... it could be you are loading the asset over a domain not of the domain you are accessing it on

hoary yoke
#

Did you check the DevTools? Do you have a 404?

#

What's the URL to the photo? You should probably use Storage::url() because asset() is for assets

ashen leaf
ashen leaf
ashen leaf
hoary yoke
#

And were did you save the actual image? Because you very likely didn't save it to /public

#

Did you use a FileUpload? If yes: What's the code you use

ashen leaf
sharp skiff
#

->disk('public')

hoary yoke
#

If the image should be publicly accessible you need to use ->disk('public') and Storage::disk('public')->url($this->avatar)