Hi
I'm just trying to upgrade a 4.2 app to 5.1 and make use of the new Filesystem.
I'm having troule configuring and using the S3 driver - having looked at the video tut and the online Docs i'm struggling to get this to work.
At the moment my error is:
Argument 1 passed to League\Flysystem\AwsS3v3\AwsS3Adapter::__construct() must be an instance of Aws\S3Client, instance of Aws\S3\S3Client given
In composer I have installed the following package:
"league/flysystem-aws-s3-v3": "1.0",
I've seen references to this package https://github.com/GrahamCampbell/Laravel-Flysystem
but I'm not sure if I should install this one as well.
I have configured the config file with my credentials . The user has full access to the bucket
In my class I have a function which effectively uploads an image from the local storage to the s3 storage. I am initiating S3 as follows:
$s3 = Storage::disk('s3');
I have injected the following :
use Illuminate\Contracts\Filesystem\Filesystem;
use League\Flysystem\AwsS3v3\AwsS3Adapter;
use Storage;
I' very confused how to get this set up and working. Can someone help me in the right direction please.
What packages should I have installed?
What should be in my config/app.php ?
What do I need to inject?
Thank you