symlink(): No such file or directory

Updated at 19-Jul-2021, By samar

symlink(): No such file or directory

In this session, we will try our hand at solving the "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.
  • Remove storage folder inside of public directory using command

    rm storage
    

    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
    

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

Back to code snippet queries related laravel