Added accessor/mutator
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
9a706b3e3e
commit
7099358985
1 changed files with 8 additions and 0 deletions
|
@ -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
|
protected function lastCheckout(): Attribute
|
||||||
{
|
{
|
||||||
return Attribute::make(
|
return Attribute::make(
|
||||||
|
|
Loading…
Add table
Reference in a new issue