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

graffislife's avatar

Laravel images broken when deployed

Hi guys, I deployed my work online and I have an error. My images are not showing up. What could be the problem here? My directory is at the storage. I am also using This

/storage/design_image/{{$inventory->design_image}}
0 likes
7 replies
jdc1898's avatar

If you put images outside of the public folder then they will not be accessible to visitors.

If you do decide to do this, then any images will need to be streamed to the client by your code and not directly accessible as assets by the browser

jdc1898's avatar

Did you create a symbolic link by using the php artisan storage:link command?

graffislife's avatar

Yes I did. It said The "public/storage" directory already exist."

Snapey's avatar

If it said file already existed, why did you not investigate that?

Please or to participate in this conversation.