I'm trying to upload an image file to AWS_BUCKET. Here is my controller function,
public function createImage(Request $request)
{
$path = $request->file('image')->store('images', 's3');
}
when I'm trying to upload an image using postman below error appears
Argument 1 passed to League\\Flysystem\\AwsS3v3\\AwsS3Adapter::__construct() must be an instance of Aws\\S3Client, instance of Aws\\S3\\S3Client given,
called in C:\\xampp\\htdocs\\project-api\\vendor\\laravel\\framework\\src\\Illuminate\\Filesystem\\FilesystemManager.php on line 229
I tried several solutions. Nothing worked. Does anyone know how to solve this.? Is there an error with my code.?