From febfcd480317bedfc9c89b733a6bd175810ba027 Mon Sep 17 00:00:00 2001 From: snipe Date: Sun, 22 Jan 2023 00:56:19 -0800 Subject: [PATCH] Updated model with new field Signed-off-by: snipe --- app/Models/Asset.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Models/Asset.php b/app/Models/Asset.php index f8e0cab314..102f48fea2 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -116,6 +116,7 @@ class Asset extends Depreciable 'next_audit_date' => 'date|nullable', 'last_audit_date' => 'date|nullable', 'supplier_id' => 'exists:suppliers,id|nullable', + 'asset_eol_date' => 'date|max:10|min:10|nullable', ]; /** @@ -145,6 +146,7 @@ class Asset extends Depreciable 'last_checkout', 'expected_checkin', 'byod', + 'asset_eol_date', ]; use Searchable; @@ -167,6 +169,7 @@ class Asset extends Depreciable 'expected_checkin', 'next_audit_date', 'last_audit_date', + 'asset_eol_date', ]; /** @@ -180,7 +183,7 @@ class Asset extends Depreciable 'company' => ['name'], 'defaultLoc' => ['name'], 'location' => ['name'], - 'model' => ['name', 'model_number'], + 'model' => ['name', 'model_number', 'eol'], 'model.category' => ['name'], 'model.manufacturer' => ['name'], ];