Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

helpmyworld's avatar

Images are not loading or displaying, some are displaying some are not

Please help me. Some images are displayed and some are not. (https://www.rorisangmaimane.co.za/blog)

I created the link

0 likes
5 replies
helpmyworld's avatar


<img src="url({{asset('storage/' . $book->cover)}});"
Lopsum's avatar

👋 For your blog post cover, your <img> tag is broken : img tag

1 like
Snapey's avatar
Snapey
Best Answer
Level 122

You have some images for whom the URL is like

https://www.rorisangmaimane.co.za/blog/url(https://www.rorisangmaimane.co.za/storage/book-covers/FA3YLIu6pnh3zsSZlm7A3MNjqT7DUfM9DsXA53XX.jpeg);

which is clearly invalid The URL between the brackets works fine

So the problem with this;

<img src="url({{asset('storage/' . $book->cover)}});"

is that you are using the URL helper without it being in php land. Its being output as html

You probably just meant

<img src="{{asset('storage/' . $book->cover)}};"

but I don't know because I don't know what is in $book->cover

1 like

Please or to participate in this conversation.