I'm trying to user an uniform bucked with flysystem v3.
https://flysystem.thephpleague.com/docs/adapter/google-cloud-storage/
$clientOptions = [
'projectId' => "project-id",
"keyFile" => "file.json",
];
$storageClient = new \Google\Cloud\Storage\StorageClient($clientOptions);
$bucket = $storageClient->bucket("bucket_name");
$fs = new \League\Flysystem\Filesystem(new \League\Flysystem\GoogleCloudStorage\GoogleCloudStorageAdapter($bucket, ''));
$fs->write("xx.txt" , "xx");
When i try to write something i get "Unable to write file at location: xx.txt". If i switch to fine-grained everithing works fine.
Any ideea what i'm doing wrong? I guess there are some options i'm not passing right.