Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Class 'League\Flysystem\AwsS3v3\AwsS3Adapter' not found

laravel Framework is 7.9.2.

composer require league/flysystem-aws-s3-v3 ~1.0 installed to use aws s3.

It runs on localhost, but when I put it on the aws server,

Error: Class 'League\Flysystem\AwsS3v3\AwsS3Adapter' not found error appears.

However, when I checked with composer licenses,

It is identified as league/flysystem v1.0.67 MIT.

I don't know what the problem is. If you have any difficulties like me, please help me.

like image 499
jekim Avatar asked Oct 19 '25 09:10

jekim


2 Answers

This probably isn't going to help you, but I stumbled across this looking for a solution to the same error. It looks like the League S3 AWS V3 adapter had an upgrade and the version 2 branch doesn't use the same class names. I specified the version I wanted like this in composer.json and that seemed to sort it out:

    "league/flysystem-aws-s3-v3": "1.0.29",
like image 64
Dave Child Avatar answered Oct 20 '25 23:10

Dave Child


Maybe you should try run this command in terminal

composer require league/flysystem-aws-s3-v3 ^1.0
like image 31
Vicky Budiman Avatar answered Oct 20 '25 22:10

Vicky Budiman