If in public I generally:
<img src="{{ asset('upload/imgdogs') . '/' . $row->dogpic }}" alt="" class="image">
Public is not part of the url however, you point to public as document root.
The asset helper has always worked for me.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi Everyone.
I'm a newbie on Laravel framework/community.
I've deployed Laravel on shared hosting. I have following structure.
How I can make a connection for the images to be accessible from the laravel/public/images on the link example.com/images/smile.png?
Can somebody help and explain in detail, this would be very very helpful for me.
Please or to participate in this conversation.