You forgot to install the required package:
composer require league/flysystem-aws-s3-v3
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
@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 :/
Please or to participate in this conversation.