Level 2
<img src="url({{asset('storage/' . $book->cover)}});"
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Please help me. Some images are displayed and some are not. (https://www.rorisangmaimane.co.za/blog)
I created the link
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
Please or to participate in this conversation.