ActivityLog - EntryModel - multiple-field_type
girvydas - 8 months ago
I have a problem while integrating activity-log package (https://github.com/spatie/laravel-activitylog). It is not detecting relationship type changes (then using multiple-field_type) First of all, Streams EntryModel toArray method should return values like parent method (with relationToArray() method). Second problem happens then package is trying to get EntryModel via $this->fresh() method. Right after save, new values are not yet saved. My guess that there is some compatibility problems with Eloquent sync() method line - (https://github.com/anomalylabs/multiple-field_type/blob/61aa6e25c24dde6da5df41942af651abe1195a42/src/MultipleFieldTypeAccessor.php#L48).
Any thoughts how to implement relation changes? :)