Search code examples
phpamazon-web-servicesherokularavel-5amazon-s3

Class 'League\Flysystem\AwsS3v3\AwsS3Adapter' not found (Laravel + Heroku)


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.


Solution

  • you forgot to install the required library

    composer require league/flysystem-aws-s3-v3
    

    good luck