symlink(): No such file or directory

Created at 20-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

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

Don't forget to share this article! Help us spread the word by clicking the share button below.

We appreciate your support and are committed to providing you valuable and informative content.

We are thankful for your never ending support.