Added accessor/mutator

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-06-19 11:11:50 +01:00
parent 9a706b3e3e
commit 7099358985

View file

@ -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(