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

ilex01's avatar

php artisan storage:link - symlink(): No such file or directory

I've 2 folders

  • public_html
  • lfg

https://i.gyazo.com/da57fe3c032290554790c5f1aa5243ca.png

When I run the command

php artisan storage:link

I've this error:

https://i.gyazo.com/54b66118333637bbe4e507028589fbf9.png

ErrorException

symlink(): No such file or directory

at vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.ph                                                                                        p:335
0 likes
2 replies
ilex01's avatar
ilex01
OP
Best Answer
Level 5

The answer is to delete the storage folder in public_html before running the php artisan storage:link command. Then it works like a charm.

2 likes

Please or to participate in this conversation.