symlink(): No such file or directory

If you are getting symlink(): no such file or directory error while creating a symlink in laravel then you have to just remove the storage folder which is inside the public directory and after that, you have to run the storage:link command.

Answers 2
  • Remove storage folder inside of public directory using command

    rm storage
    
    0

    Go to yourProject/public path and run the artisan command to remove the storage folder which is inside of public directory in your laravel project

  • Create storage link using artisan command

    php artisan storage:link
    
    0

    Go to project root directory and run php artisan command to create a storage link

  • Back to code snippet queries related laravel