Skip to content

Commit

Permalink
Bump laravel/database version
Browse files Browse the repository at this point in the history
  • Loading branch information
pxlrbt committed Oct 5, 2021
1 parent ef849b5 commit 867731b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"require": {
"php": "^8.0",
"illuminate/config": "^8.0",
"illuminate/database": "^8.0",
"illuminate/database": "^8.53",
"illuminate/support": "^8.0",
"spatie/laravel-package-tools": "^1.6.3"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/LogsActivity.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ public static function logChanges(Model $model): array
if ($model->hasCast($attribute)) {
$cast = $model->getCasts()[$attribute];

if ($model->isCustomDateTimeCast($cast) || (method_exists($model, 'isImmutableCustomDateTimeCast') && $model->isImmutableCustomDateTimeCast($cast))) {
if ($model->isCustomDateTimeCast($cast) || $model->isImmutableCustomDateTimeCast($cast)) {
$changes[$attribute] = $model->asDateTime($changes[$attribute])->format(explode(':', $cast, 2)[1]);
}
}
Expand Down

0 comments on commit 867731b

Please sign in to comment.