Skip to content
Advertisement

Laravel 5.6 storage link already exists but i am getting 404 error when trying to get a file from the public folder

I’ve created a symlink using the command:

JavaScript

Then I’ve created a file in storage/app/public. Following the documentation, I could get the link to this file with:

JavaScript

Which returns in the html code:

JavaScript

But I am getting 404 error. Any help?

Advertisement

Answer

Go to your project’s public folder, and delete the storage folder, if it exists.
Then run this command line:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement