From 48b8cfcef98f171417f573bce59112e5c46d492e Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 18 Jan 2023 13:04:36 -0800 Subject: [PATCH] Added byod to model, removed duplicate validation rule Signed-off-by: snipe --- app/Models/Asset.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Models/Asset.php b/app/Models/Asset.php index d42461a23f..266285677f 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -95,6 +95,7 @@ class Asset extends Depreciable 'location_id' => 'integer', 'rtd_company_id' => 'integer', 'supplier_id' => 'integer', + 'byod' => 'boolean', ]; protected $rules = [ @@ -106,7 +107,6 @@ class Asset extends Depreciable 'physical' => 'numeric|max:1|nullable', 'checkout_date' => 'date|max:10|min:10|nullable', 'checkin_date' => 'date|max:10|min:10|nullable', - 'supplier_id' => 'exists:suppliers,id|numeric|nullable', 'location_id' => 'exists:locations,id|nullable', 'rtd_location_id' => 'exists:locations,id|nullable', 'asset_tag' => 'required|min:1|max:255|unique_undeleted', @@ -144,6 +144,7 @@ class Asset extends Depreciable 'requestable', 'last_checkout', 'expected_checkin', + 'byod', ]; use Searchable;