Answers for "how to get image from s3 bucket in laravel"

PHP
0

store image to s3 laravel

// Products controller
use IlluminateSupportFacadesStorage;

$image = $request->file('image');
$filePath = 'images/' . $image->getClientOriginalName();
Storage::disk('s3')->put($filePath, file_get_contents($image), 'public');
Posted by: Guest on May-11-2021
0

check the existing image in s3 laravel

{!!Html::image(<Your S3 bucket URL>.$myPath),'logo',['width'=>60,'height'=>55])!!}
Posted by: Guest on September-10-2020
0

How to display image from aws s3 in laravel blade

<img src="{{Storage::disk('s3')->url($imagePath)}}">
Posted by: Guest on December-15-2021

Code answers related to "how to get image from s3 bucket in laravel"

Browse Popular Code Answers by Language