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

Meaulnes's avatar

My images are visible on local server but not on hosting's server

I use the laraval filesystem and place images on the public disk. The view in the local laravel built in server are good but after I have pushed my app on remote server. Images are no longer visible.

I must add that, replicating a previous site powered by smfony with several levels of nested directories, I placed the images manually (with a classical file manager) into the storage/app/public/ folder. The links seems to work properly as I can see the folders/files into public/storage.

Can somebody help fixing that.

0 likes
2 replies
cwray-tech's avatar

Have you run php artisan storage:link on your hosting server? In order to view files in your storage directory, you must link the storage with the public directory.

Meaulnes's avatar

Thank you guys for your answers.

@cwray-tech yes I did. Even several times. But eventually, I removed both storage/app/public and public/storage then recreated storage/app/public, applied php artisan storage:link and put manually my files inside storage/app/public (may be it was public/storage) and it worked.

@SarwarAhmed, your are right assuredly.

1 like

Please or to participate in this conversation.