mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 13:57:41 -08:00
Added accessor/mutator
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
9a706b3e3e
commit
7099358985
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue