ivan770 / laravel-firestore-cache
Cloud Firestore driver for Laravel cache
dev-master
2019-05-31 07:20 UTC
Requires
- google/cloud-firestore: ^1.6
- illuminate/cache: ^5.8
- nesbot/carbon: ^2.18
This package is auto-updated.
Last update: 2025-03-01 00:27:30 UTC
README
Installation
composer require ivan770/laravel-firestore-cache
Configuration
- Register service provider in
config/app.php
Ivan770\Firestore\FirestoreServiceProvider::class,
- Add
firestore
config toconfig/cache.php
'firestore' => [ 'driver' => 'firestore', 'id' => env('FIRESTORE_ID'), 'key' => env('GOOGLE_APPLICATION_CREDENTIALS'), 'collection' => env("FIRESTORE_COLLECTION", 'cache'), ]
- Configure your .env
CACHE_DRIVER=firestore FIRESTORE_ID=project_id GOOGLE_APPLICATION_CREDENTIALS=path_to_key_file