PHP code example of mpociot / laravel-firebase-sync
1. Go to this page and download the library: Download mpociot/laravel-firebase-sync 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/ */
mpociot / laravel-firebase-sync example snippets
'firebase' => [
'api_key' => 'API_KEY', // Only used for JS integration
'auth_domain' => 'AUTH_DOMAIN', // Only used for JS integration
'database_url' => 'https://your-database-at.firebaseio.com',
'secret' => 'DATABASE_SECRET',
'storage_bucket' => 'STORAGE_BUCKET', // Only used for JS integration
]
use Mpociot\Firebase\SyncsWithFirebase;
class User extends Model {
use SyncsWithFirebase;
}