I’m using Laravel version 11 and packages (kreait/firebase-php 7.3 & google/cloud-firestore 1.45)
While getting connection to firestore everything works fine. But while trying to query out the data the laravel app crashes. I need to re-run the app after this, because it stops the server.
$firestoreClient = new FirestoreClient();
$databaseName = 'vue-db';
$collectionId = 'customers';
Credentials of firebase were set into .env
file as
GOOGLE_APPLICATION_CREDENTIALS
I need to query out the customers collection which has the below path
customers/{customerID}/{SetOfFields} I want to query with customer ID or email
I have tried many approaches everything turns my app into crash. Immediate help is so much appreciated.
I want to fetch the customer details by their mail id from laravel backend and display it in vuejs front-end
But it makes the app crash while I try this in backend
Priyadharshini is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.