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

connor11528's avatar

Images not rendering for Forge deploy but works locally

I am having an issue rendering images when I deploy my Laravel 5.4 app using Forge.

I put my images in storage/app/public and then ran php artisan storage:link. I ran this locally and everything renders correctly.

I included the storage:link command in my Deploy Script for Forge. I reference the image in blade template like:

When I deploy my site using Forge I get a 404 error for rendering the images. The error says failed to load resource. Does anyone know why the images are rendering locally but the file path breaks when I deploy? Thank you!

0 likes
3 replies
spekkionu's avatar

Can you log into the server and check that the symlink was created correctly?

DougE's avatar

I ran into this issue as well, turns out you need to run php artisan storage:link on both your local and forge-deployed versions.

2 likes
sotekno's avatar

What's the content inside your website dir?

try with this:

"ls -la"

and see if symlinks are properly created.

Please or to participate in this conversation.