storage folder is not in the publically visible part of your site. You can use a symbolic link to publish part of your storage folder.
Dec 13, 2016
9
Level 4
Show image in view stored in storage
Hi to all, i've created a new storage in this way
'images' => [
'driver' => 'local',
'root' => storage_path('app/public/images'),
'visibility' => 'public'
],
Then, i upload my photo with:
Storage::disk('images')->put('image.jpg', file_get_contents($source_image_path));
This store the file image.jpg in storage/app/public/images
Now, i would like to display this image from a Blade.
With this command, i get TRUE as result (so, the file exists):
Storage::disk('images')->exists('image.jpg');
But, how i can display this image on <img src="" /> tag ?
Please or to participate in this conversation.