Downloads
Stars
Version
Cloud Firestore library wrapper for Laravel and Firevel compatible with Google App Engine standard environment.
composer require firevel/firestore
app.yaml
is stored) with content:; enable the gRPC extension
extension=grpc.so
; Ref.: https://github.com/colopl/laravel-spanner/issues/12
grpc.enable_fork_support = 1
If you use library outside Google App Engine please check gRPC installation guide.
To access FirestoreClient simply use Firestore
facade for example:
$data = [
'name' => 'Los Angeles',
'state' => 'CA',
'country' => 'USA'
];
Firestore::collection('cities')->document('LA')->set($data);
Inside Google App Engine Firestore should work without authentication. For usage outside App Engine check Authentication guide.