$config */ public static function fromConfig(array $config): Contract\Firestore { try { return new self(new FirestoreClient($config)); } catch (Throwable $e) { throw new RuntimeException('Unable to create a FirestoreClient: '.$e->getMessage(), $e->getCode(), $e); } } public function database(): FirestoreClient { return $this->client; } }