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

Not a real sync yet #6

Open toby78 opened 7 years ago

toby78 commented 7 years ago

If:

The local db and firebase will be out-of-sync.

For true syncronization there needs to be an additional event handler for firebase events.

As mentioned inthe previous ticket 100% synchronization probably required Firebase to be Master.

Firebase Events will always be called if changes occur.

mikemclin commented 7 years ago

Until recently, this was not possible. Now that Firebase has implemented Cloud Functions, you could tap into Firebase Realtime Database Triggers and perform logic.

Requirements to get Firebase Syncing back to Laravel

This laravel-firebase-sync project could also include the JavaScript file for the Firebase Cloud Function. Since there isn't a package.json file yet, one could be created for the "JavaScript" portion of the package.

nacr commented 6 years ago

Any Ideas if the package will support this ?

tusharvikky commented 6 years ago

+1