bpocallaghan / titan-starter-website

A Laravel Website and Admin starter project that helps you with the setup.
https://titan.bpocallaghan.co.za
MIT License
76 stars 19 forks source link

Image Doesn't Display! #24

Closed maylmeto closed 4 years ago

maylmeto commented 4 years ago

Thank you for your amazing work!

Got problem working with images, as you can see in below screenshots, images are not showing in the page.

I wonder what would be the problem?

titan1 titan

bpocallaghan commented 4 years ago

Hi @maylmeto Thanks for the compliment and giving this project a try. Can you perhaps just double check / send me the path to the images? What I am after: Did the images successfully uploaded to /public/uploads/images/xxxx.png and what is the src tag in those images on that page?

maylmeto commented 4 years ago

Just checked, images did upload to the path as you mentioned but still images are not showing in the page.

path

path1

bpocallaghan commented 4 years ago

@maylmeto Can you confirm the APP_URL in the .env file? I see the path is http://localhost ? Might it be that its missing the port or perhaps you have a shorter url like http://site.test. You can also try to have the src be src=/uploads/images/{{ xxxx }} If that makes sense ? I think the helper file for it is {{ $news->cover_photo->thumb_url }} or what do u have now?

maylmeto commented 4 years ago

Thank you for your help!

Yes, as you said, i had problem with image path. Now, it is fixed.

bpocallaghan commented 4 years ago

@maylmeto Awesome, happy its working! Please shout if u have any questions or issues. Have fun