vohinc / laravel-firestore
Firestore wrapper for laravel
v1.1.1
2022-02-04 07:08 UTC
Requires
- php: ^7.1|^8.0
- google/cloud-firestore: ^1.5
- google/protobuf: ^v3.3.0
- grpc/grpc: ^v1.1.0
- illuminate/support: 5.8.* || ^6.0 || ^7.0 || ^8.0
README
The Google firestore wrapper for Laravel.
Requirement
- Laravel 5.8.*
- gRPC extension
Install
composer require vohinc/laravel-firestore
Publish Configuration
php artisan vendor:publish --provider=Voh\LaravelFirestore\FirestoreServiceProvider --tag=config
Usage
use Voh\LaravelFirestore\Facades\Firestore; Firestore::collection('users')->document('lovelace')->set([ 'first' => 'Ada', 'last' => 'Lovelace', 'born' => 1815, ]);