LaravelPackages.net
Acme Inc.
Toggle sidebar
ivan770/laravel-firestore-cache

Cloud Firestore driver for Laravel cache

1
1
About ivan770/laravel-firestore-cache

ivan770/laravel-firestore-cache is a Laravel package for cloud firestore driver for laravel cache. It currently has 1 GitHub stars and 1 downloads on Packagist. Install it with composer require ivan770/laravel-firestore-cache. Discover more Laravel packages by ivan770 or browse all Laravel packages to compare alternatives.

Last updated

Cloud Firestore cache for Laravel

Installation

composer require ivan770/laravel-firestore-cache

Configuration

  1. Register service provider in config/app.php
Ivan770\Firestore\FirestoreServiceProvider::class,
  1. Add firestore config to config/cache.php
'firestore' => [
    'driver' => 'firestore',
    'id' => env('FIRESTORE_ID'),
    'key' => env('GOOGLE_APPLICATION_CREDENTIALS'),
    'collection' => env("FIRESTORE_COLLECTION", 'cache'),
]
  1. Configure your .env
CACHE_DRIVER=firestore
FIRESTORE_ID=project_id
GOOGLE_APPLICATION_CREDENTIALS=path_to_key_file

Usage

Laravel documentation

Star History Chart