Multiple project firestore
herilesmana opened this issue · comments
Heri Lesmana commented
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?
Heri Lesmana commented
Finally i'm using this line of code, and this is working. Thanks
$this->firestore = Firebase::project('project_name')->firestore()->database();