PHP code example of tungltdev / laravel-firebase-sync
1. Go to this page and download the library: Download tungltdev/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/ */
tungltdev / 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 Tungltdev\Firebase\SyncsWithFirebase;
class User extends Model {
use SyncsWithFirebase;
}
use Tungltdev\Firebase\SyncsWithFirebase;
class User extends Model {
use SyncsWithFirebase;
protected $withoutSyncsWithFirebase=['created','updated','deleted'];
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.