public function getChangesAttribute() : Collection { return collect(array_filter($this->properties->toArray(), function ($key) { return in_array($key, ['attributes', 'old']); }, ARRAY_FILTER_USE_KEY)); }