Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

DENTYMEDIA's avatar

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

@JeffreyWay I followed this guide: https://wogan.blog/2017/01/04/use-amazon-s3-with-laravel-5/ and set up my Amazon S3. But whenever I run: $contents = Storage::disk('s3')->has('layers-icon.svg'); in PHP Artisan Tinker, I get: [Symfony\Component\Debug\Exception\FatalErrorException] Class 'League\Flysystem\AwsS3v3\AwsS3Adapter' not found

I did add my credentials to the config/aws.php file. Still can't figure out what I am doing wrong :/

0 likes
4 replies
bheath's avatar

You forgot to install the required package:

composer require league/flysystem-aws-s3-v3
14 likes
suhkha's avatar

Hi! I have the same problem, but I did not forget install the package... I'm lost :/

2 likes
iocod's avatar

Make sure you are installing to the right folder. check your application vendor folder and make sure the package is installed.

1 like
nitinsridar's avatar

@bheath Thanks, Wonderfull Its working, I was doing it in a different manner which is complicated

Please or to participate in this conversation.