PHP code example of richan-fongdasen / firestore-laravel
1. Go to this page and download the library: Download richan-fongdasen/firestore-laravel 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/ */
richan-fongdasen / firestore-laravel example snippets
// Cache store
Cache::put('key', 'value', 60); // Store a value in the cache for 60 seconds
$value = Cache::get('key'); // Retrieve a value from the cache
// Session
session(['key' => 'value']); // Store a value in the session
$value = session('key'); // Retrieve a value from the session