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

cero's avatar
Level 1

How to make a symlink on deployed website

I am new in Laravel, as you know in order to access stored files you should have a symlink from storage/app/public to public/storage. In computer you can just type in command line: php artisan storage:link. But now I have deployed my website on hosting and want to create a symlink. How can I do it?

0 likes
3 replies
Cronix's avatar

ssh into the server and run it. You can also call artisan commands via your code. It really depends on what kind of hosting you have.

cero's avatar
Level 1

@Cronix how can I run artisan command via code? I am using 000webhost free hosting. I tried many things but still can't symlink the two folders.

Please or to participate in this conversation.