From 4aae82fa3862ba0badfd8069d7942959f922b899 Mon Sep 17 00:00:00 2001 From: spencerrlongg Date: Tue, 28 Nov 2023 17:28:17 -0600 Subject: [PATCH] cleanup validation rules a little --- app/Models/Asset.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Models/Asset.php b/app/Models/Asset.php index cc2803f8aa..4acb08099f 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -106,11 +106,11 @@ class Asset extends Depreciable 'supplier_id' => 'exists:suppliers,id|nullable', 'asset_eol_date' => 'date|nullable', 'eol_explicit' => 'boolean|nullable', - 'byod' => 'boolean', - 'order_number' => 'max:255|nullable', - 'notes' => 'max:65535|nullable', - 'assigned_to' => 'nullable|integer|exists:users,id', - 'requestable' => 'boolean', + 'byod' => 'nullable|boolean', + 'order_number' => 'string|max:191|nullable', + 'notes' => 'string|max:65535|nullable', + 'assigned_to' => 'integer|exists:users,id|nullable', + 'requestable' => 'boolean|nullable', ];