Looking to hire Laravel developers? Try LaraJobs

laravel-firestore-cache maintained by ivan770

Description
Cloud Firestore driver for Laravel cache
Last update
2019/05/31 09:20 (dev-master)
License
Links
Downloads
1

Comments
comments powered by Disqus

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