Hi all, Is it possible to create an observable sync. I am using model::observe to log changes to models on update and basically create a log of all changes by:
return array_diff_assoc($model->getAttributes(),$model->getOriginal());
This is working really well and I now have an atomic changelog, but I can't figure out how to track sync updates with relationships as there is no 'model' for the pivot table.
Any Ideas?
Thanks in advance.
have you tried to observe the relations of the class too?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community