All Questions
Tagged with google-cloud-firestore php
135 questions
0
votes
2
answers
139
views
Reading from firestore in PHP not working with non-GRPC Firebase client
I'm using this firestore client that doesnt require GRPC and it is made by bensontrent
GITHUB REPO: https://github.com/bensontrent/firestore-php
The problem I have is that my index.php is not working ...
0
votes
1
answer
96
views
ECONNRESET error in postman when inserting document to Firestore from Laravel
I relatively new on using firebase on laravel and currently encountering an error in postman
"Error: read ECONNRESET" everytime I run createUser what could be the problem?
public function ...
0
votes
1
answer
64
views
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 ...
0
votes
2
answers
74
views
Firestore PHP Client permission denied
I want to use Google's Firestore to save user data, while the backend uses PHP. So far I configured the access rules like this:
rules_version = '2';
service cloud.firestore {
match /databases/{...
0
votes
1
answer
577
views
Google Firestore Database unable to connect in IIS (Laragon Apache is fine) "Empty address list:" Error :14
I am running (Windows) IIS with PHP 8.1, grpc + sodium. I have the credentials file from Google Firebase, and I'm just reading from a collection called "info".
On the same machine I am ...
-4
votes
2
answers
171
views
Fatal Error: Call to undefined method Google\Cloud\Firestore\QuerySnapshot::count() [closed]
I want to echo 5000 user's documents from Firerstore to an HTML table using Laravel but am getting an error "call to undefined method Google\Cloud\Firestore\QuerySnapshot::count()". Please ...
0
votes
0
answers
65
views
How to retreive more than 5000 documents from firestore using laravel
I want to retrieve user's document more than 5000 from firestore to html table, i cant view the users table again because the document is more than 5000 but am getting error
public function history(...
1
vote
0
answers
74
views
PHP webhook and google initializer
i'm trying to set up a webhook to connect my stripe account to my firebase/firestore account and it's not working, i'm getting this message:
webhook.php - Uncaught Error: Class "Google\ApiCore\...
0
votes
0
answers
64
views
How to execute code at the same time while debiting user's account tables in PHP
I'm new to php. i have users plans table(beta target, beta kopa, beta flex and users table) when a user withdraws, it sometimes debit the users plan table and wont debit the specific user main account,...
-1
votes
1
answer
60
views
Delete document on the basis of id match in the array field. in laravel
i am working on api in laravel for delete chats document in the firebase
following is my code
$collectionRef = $db->collection('chats');
$query = $collectionRef->where('participantId', '...
1
vote
1
answer
148
views
How to compare the date in firebase with the current date using Laravel
Please am new to using Laravel and firebase. Please how do I compare the date inside my firebase with the current date, I want to check if the inserted date in my firebase is greater than or equal to ...
0
votes
1
answer
522
views
PHP Firestore without gRPC extention
I am currently working on a PHP project using Firebase Firestore, and I plan to deploy the web application using Heroku. However, it turns out that Heroku does not support the gRPC extension. I have ...
1
vote
1
answer
37
views
DocumentSnap is coming empty in firebase in php
I am trying to fetch firestore document via php but snapshot is not showing any record
$collectionReference = $this->firestore->database()->collection('orders');
$...
0
votes
1
answer
155
views
In development with Laravel How to retrieve Firestore queries
I am currently using Laravel to create an application that utilizes Firestore.
I would like to extract only the data where a particular field in the collection retrieved from the Firestore is NULL (...
0
votes
1
answer
67
views
Problem reading email only from firebase php laravel
I am trying to reach any e-mail in this collection, but I did not know
i try to right
$document->data()['email']
but give me this error
my firebase
my code is :
public function index()
{
$...