vendredi 1 février 2019

Laravel get image from S3 instead of local

I have a Laravel 5 app which was previously storing images locally. I have now modified it so that images are stored on an S3 server, I previously retrieved the local images like this...

$image_contents = Storage::get('myimages/logos/' . $image->filename);

Now I have moved to S3 storage, how can I instead get the image from the S3 bucket?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire