Closed herilesmana closed 2 years ago
I'm using this line of code for using firestore
$this->firestore = app('firebase.firestore')->database()
So I can get documents of collection using this line of code $this->firestore->collection('peoples')->documents()
$this->firestore->collection('peoples')->documents()
I have no problem with using the default project configuration.
But what if I have multiple project configurations?
Finally i'm using this line of code, and this is working. Thanks $this->firestore = Firebase::project('project_name')->firestore()->database();
$this->firestore = Firebase::project('project_name')->firestore()->database();
I'm using this line of code for using firestore
$this->firestore = app('firebase.firestore')->database()
So I can get documents of collection using this line of code
$this->firestore->collection('peoples')->documents()
I have no problem with using the default project configuration.
But what if I have multiple project configurations?