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

rg's avatar
Level 1

Where and how to create symlink from 'public/storage' to 'storage/app/public' ?

Hi , i'm building an api with laarvel, & working with filesystem in laravel . i have uploaded my images from fronted angular (different domain) to my server on 'stoarge/app/public' using Storage::put($file,$content) facade. but now i wants to access my all uploaded images from browser , so how i will be able to do that and how and where to create symbolic link. thanks in advance

0 likes
3 replies
ponos's avatar

php artisan storage:link

4 likes
kamleshcgtechno's avatar

If you are using Laravel then below command will create symbolic link in public folder:

php artisan storage:link

While I am using Lumen 8.0 on Mac and Linux machines. I did not find any solution for lumen but we can create symbolic link by using full/complete path in command line:

ln -s /var/www/storage/app /var/www/public/storage

This solution worked for me. I hope, this will also help you. Thanks to ask this question.

Please or to participate in this conversation.