Laravel: Can’t create Syslink for Laravel on shared hosting

If you are trying to do a storage link using php artisan storage:link but you got an error like: no such file or directory

one reason for that is a wrong path, so to solve this you can do the link manually, all you have to do is to write this command:

ln -s /home/yourSite/yourLaravelFolder/storage/app/public /home/yourSite/public_html

where the first path is the source folder and the second path is the target which is usually referred to public_html folder. Note that you have to change the path according to your web site

Leave a Reply

Your email address will not be published.