Artisan Storage:link doesnt work laravel 8

Viewed 1025

So I was trying to link my storage folder, in terminal say success but I also receive an error message"The system cannot find the file specified.". Before I ran storage link I also ran npm run dev. Any ideas?

Terminal

public folder

1 Answers

It looks like a problem with running php artisan storage:link on Windows.

If you notice, there's a combination of backslashes and forward slashes in the link artisan is trying to make. Linux separates directories with / and Windows with \.

You can create the link manually with mklink /d. Try mklink /d public\storage storage\app\public

Related