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

raloseq's avatar

Images don't load GET IMAGE 404 (NOT FOUND)

Hello, my images don't load, im getting GET http://localhost/storage/public/V0AkWXifX70Lj3M17VzmrlVFMDxwBOQgXnnjrk7J.png 404 (Not Found) Im using docker (nginx,php,mysql), exectued command storage:link in php container but nothing happens. I don't know where to search for solution.

0 likes
10 replies
jlrdw's avatar

Also what code are you using, I don't see an image tag.

Edit:

And public shouldn't be in the url.

1 like
jlrdw's avatar

@raloseq see my edited reply above. And try to use the asset helper.

1 like
raloseq's avatar

@jlrdw Ye but how can i remove public? When i hardcode storage/image it works but with this <img src="{{ asset('storage/' . $car->photo) }}" alt=""> it doeasn't work. $car->photo is "public/123123123.jpg" fore example

1 like
jlrdw's avatar

@raloseq I am not familiar with docker. But are you storing the images in Storage or are you uploading them to public.

Maybe @sinnbeck will see this post, he is very well versed in docker.

1 like
raloseq's avatar

@jlrdw In controller i have $car->photo = $request->file('photo')->store('public'); then images are stored in storage/app/public.

1 like
raloseq's avatar

@jlrdw Ye using ln -s inside a nginx container works now, thanks.

Please or to participate in this conversation.