vohinc/laravel-firestore

Firestore wrapper for laravel

v1.1.1 2022-02-04 07:08 UTC

This package is auto-updated.

Last update: 2024-11-04 12:45:19 UTC


README

The Google firestore wrapper for Laravel.

Requirement

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,
]);