Reputation: 41
I have Laradock on my MacBook.
I make php artisan storage: link
My website is this URL: http://project1.test
My website upload files to storage/.
When I open in browser: http://project1.test/storage/my-file-name.jpg I have error: 404 NOT FOUND
How can I resolve it?
Upvotes: 0
Views: 4226
Reputation: 8170
Solution 1: create a symlink
you can not access files located in storage
directory directly via URL! Only files located in public
folder would be available publicity. So you should make a symlink in public folder pointing the directory or file (within storage folder) you want to share. Take a look at this answer
Solution 2:
Just upload the files in public
folder!
Upvotes: 2