Home / Laravel

Access Laravel Storage File,Return 404

Posted on:2020-02-08 Views:9398 Words:53

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.