double check the storage exist in the public folder, open your Internet browser and try access the full URL of the image (try with and without "storage") ...
How to show a image from the storage folder
I am making a website where i upload a image and later show the image in the website.
The uploaded image ends up in the storage folder (path: storage\images\uploads)
This is what i did:
-
created a symlink to make a connection.
php artisan storage:link -
And load the uploaded image in the view:
<img src="{{ asset('storage/images/uploads/'.$product -> afbeelding) }}" alt="" title=""/>
But it doesn't work.
Am I doing something wrong? Did I forget a step?
So for the image to appear in the storage/images/uploads folder, you should actually save the image to storage/app/public/images/uploads
So you put it in your storage/app/public folder and it appears by symlink in public/storage
I know the naming is confusing. Just an unfortunate choice by taylor in the early days.
Please or to participate in this conversation.