PHP code example of vohinc / laravel-firestore

1. Go to this page and download the library: Download vohinc/laravel-firestore library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

vohinc / laravel-firestore example snippets


use Voh\LaravelFirestore\Facades\Firestore;

Firestore::collection('users')->document('lovelace')->set([
    'first' => 'Ada',
    'last' => 'Lovelace',
    'born' => 1815,
]);
shell
php artisan vendor:publish --provider=Voh\LaravelFirestore\FirestoreServiceProvider --tag=config