Home > OS >  Laravel 8.60.0 creates a file instead of a folder/symlink when I run `php artisan storage:link`
Laravel 8.60.0 creates a file instead of a folder/symlink when I run `php artisan storage:link`

Time:10-02

Image showing what php artisan storage:link creates in my public/ directory

So , I am working on a small project where I need to create a symlink to store file in the storage directory in laravel. I was previously working on windows where the same code was working fine but as I configured Context menu opens on clicking the file

Any assistance will be greatly appreciated.

CodePudding user response:

If you created it in wsl2, windows won't regonize it as a symlink, it's a unix symlink and not a windows "symlink" that's all.

In WSL you're working inside a unix based filesystem and sharing your filesystem with windows.

CodePudding user response:

Its because your file its just accessible in the docker container created by sail. You cant access to it like this.

  • Related