Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Apr 28, 2017
1 parent 37efa23 commit eadf905
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

All notable changes to `spatie/laravel-activitylog` will be documented in this file

## 1.15.1 - 2017-04-28
- fixes error in `DetectsChanges`

## 1.15.0 - 2017-04-28
- add compatibility with L5.1 and L5.2

Expand Down
2 changes: 1 addition & 1 deletion src/Traits/DetectsChanges.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public static function logChanges(Model $model): array
if (str_contains($attribute, '.')) {
$changes += self::getRelatedModelAttributeValue($model, $attribute);
} else {
$changes += collect($model)->only($attribute);
$changes += collect($model)->only($attribute)->toArray();
}
}

Expand Down

0 comments on commit eadf905

Please sign in to comment.