Skip to content
Cloud Firestore driver for Laravel cache
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
composer.json
composer.lock

README.md

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

You can’t perform that action at this time.