When I worked on laravel local development server php artisan storage:link
works fine for me. But when I transfer my site to production server then I saw my public
I had an issue creating a symlink to a folder located under subdomain
, tried everything for almost 3 hours, and no luck. My case was as follow:
images.example.com
.$_SERVER['DOCUMENT_ROOT'].'/uploads/
Finally, I tried this solution and it works as expected:
ln -s /home/customer/www/images.example.com/public_html/uploads /home/customer/www/example.com/public_html/uploads
Note: I used PuTTY
to create that symlink