Skip to content

Be able to override FirestoreClient::DEFAULT_DATABASE #205

@mcadet

Description

@mcadet

Describe the feature you would like to see

As described in https://cloud.google.com/firestore/docs/manage-databases?hl=fr#create_a_database, I would like to be able to override the constant defined in FirestoreClient named DEFAULT_DATABASE.

The goal will be to allow defining it via the configuration file.

My application uses multi-tenancy, and I want to switch the configuration while bootstrapping or reverting the tenancy.

I thought I just had to extend the Factory class (impossible because it's final), or whatever, but I couldn't accomplish this.
Maybe is it another way to do this?

Thank you for your awesome work in this package.

Used versions:

  • laravel/framework : v10.28.0
  • kreait/laravel-firebase : v5.4.0
  • google/cloud-firestore : v1.37.3

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions