0
votes

I have uploaded my Laravel Web application to my server and tried to run the symlinks command but the media/images are not syncing. Anyone here can help me how to fix the storage issue? here is my symlinks command :

<?php symlink('/home/webcxsol/shog/storage/app/public','/home/webcxsol/public_html/storage'); ?>

My public folder is in the public_html folder of the server and all the other files are in the other folder.

1
Where is your media/images folder located?Ahsan
It is located inside the public folder. Public/Storage/profile_images.user9107942
The images are going to main storage folder but that storage folder is not getting synced with the storage folder which is inside the Public folder.user9107942
Everything looks ok... Did you delete the symlink file after running it?Ahsan
I have deleted the storage folder inside the public folder and then hit the symlinks command again and now everything is working and images are getting synced too.I don't know how it get fixeduser9107942

1 Answers

0
votes

If you are or wish to follow the framework conventions, there is a specific command for this which you could take a look at using: php artisan storage:link.