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

Added manual synchronization method #27

Closed plokko closed 6 years ago

plokko commented 6 years ago

Added syncWithFirebase method that allows to manually sync the model with firebase; usefull especially if you plan on customizing the return data with getFirebaseSyncData and using relations that needs to be updated from related models/events.

plokko commented 6 years ago

Also fixes Call to undefined method Illuminate\Database\Query\Builder::restore() error for models without soft-deletes

codecov-io commented 6 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@6908f28). Click here to learn what that means. The diff coverage is 12.5%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #27   +/-   ##
=========================================
  Coverage          ?   76.92%           
  Complexity        ?       15           
=========================================
  Files             ?        1           
  Lines             ?       39           
  Branches          ?        0           
=========================================
  Hits              ?       30           
  Misses            ?        9           
  Partials          ?        0
Impacted Files Coverage Δ Complexity Δ
src/Mpociot/Firebase/SyncsWithFirebase.php 76.92% <12.5%> (ø) 15 <2> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 6908f28...3526ea6. Read the comment docs.

plokko commented 6 years ago

Fixed unit testing, updated minium php version to 5.6