Access Laravel Storage File,Return 404

Updated at: 2020-02-08 Views: 314 Words: 53 Category: Laravel

I upload image to laravel backend, store the file to path storage/app/public.

Now I can see this file under path.

<PROJECT>/storage/app/public# ls
notefeel_5e3ecd40d7e68.jpeg

But when I access the image from browser with link https://www.notefeel.com/storage/notefeel_5e3ecd40d7e68.jpeg, 404 return.

Solution

Run

php artisan storage:link

Then the image was shown in browser.

Leave a Comment