mpociot / laravel-firebase-sync

Synchronize your Eloquent models with a Firebase Realtime Database.
http://marcelpociot.com/blog/2016-06-20-synchronise-laravel-eloquent-models-with-firebase
265 stars 70 forks source link

getting duplicate row in mysql database but no data in firebase #17

Closed ngangchill closed 7 years ago

ngangchill commented 7 years ago

thanks for the great work.

im using your library to sync eloquent model with firebase. but when i run , it is getting duplicate ( 2 row) data in mysql database but no data in firebase database.

fb

Model:

`class Todo extends Model {

use SyncsWithFirebase;

 protected $table = 'todos';

protected $fillable = ['task', 'is_done'];

protected $visible = ['id', 'task', 'is_done'];

}`

Controller

Todo::create([ 'task' => 'double?', 'is_done' => TRUE ]);