Spatie\Activitylog\Models\Activity::getChangesAttribute PHP Method

getChangesAttribute() public method

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