The problem with editing a document in the firestore. ERR_CONNECTION_RESET error
I’m trying to insert certain data into a firestore database document, but the error ERR_CONNECTION_RESET pops up.
The connection itself goes through, there is a variable check in the code below, and if the connection is successful, 1 is output, which happens in principle, but when you try to insert data, it crashes.
The code itself is:
While reading data from Firebase firestore collection, laravel 11 web app crashes
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.
Fatal Error: Call to undefined method GoogleCloudFirestoreQuerySnapshot::count()
I want to echo 5000 user’s document from Firerstore to HTML table using laravel but am getting an error “call to undefined method GoogleCloudFirestoreQuerySnapshot::count()”. Please what am i getting wrong here
how to update a user’s document in firestore using Laravel
i have a users document i created and i would want to update user’s email and amount
how to execute many query at same in my web.php route (Laravel)
Please, am new using laravel and firestore. i have users plans table(beta target, beta kopa, beta flex and users table), in the above table when a user makes a payment via card from the app, it first checks if the user paid into either any of the listed plan table and update the specific table as selected and also update the users table. Now, where am having issues is when a user withdraws, it sometimes debit the users plan table and wont debit the specific user main account, sometimes it will debit the users main account and wont debit the plan table account. please why is it not debiting both plan table and users table at same time. i will so much appreciate any help please. below is my web.php route