diff --git a/app/Models/Asset.php b/app/Models/Asset.php index 5b3d6128ec..dbcd71462d 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -984,6 +984,14 @@ class Asset extends Depreciable ); } + protected function lastAuditDate(): Attribute + { + return Attribute::make( + get: fn ($value) => $value ? Carbon::parse($value)->format('Y-m-d H:i:s') : null, + set: fn ($value) => $value ? Carbon::parse($value)->format('Y-m-d H:i:s') : null, + ); + } + protected function lastCheckout(): Attribute { return Attribute::make(