connect my laravel 5.4 application in heroku with aws s3 to save and display images that I upload with a dashboard.
In local I have no problem with uploading and viewing the images, even these are stored in the bucket I made. But when I set up aws in heroku to do tests there, I get the error: Class 'League\Flysystem\AwsS3v3\AwsS3Adapter'
I already removed and reinstalled the package from composer, I do not know why the error does not appear in my local environment.
thank you very much.
you forgot to install the required library
composer require league/flysystem-aws-s3-v3
good luck
For laravel 8 use
composer require --with-all-dependencies league/flysystem-aws-s3-v3 "^1.0"
I solved mine with
composer require guzzlehttp/psr7 "1.8.1"
to first downgrade from version 2.0.0 as the was sdk package doesn't yet support version 2.0.0.. then
composer require league/flysystem-aws-s3-v3 "~1.0" --update-with-all-dependencies
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With