From 91fe136fd3e95db2068c0f0e462d509022603801 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 14 Dec 2016 09:58:12 -0800 Subject: [PATCH] More nullables --- app/Models/Asset.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Models/Asset.php b/app/Models/Asset.php index f2794b4ea0..4e1b2c12bb 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -51,11 +51,11 @@ class Asset extends Depreciable 'name' => 'min:2|max:255', 'model_id' => 'required|integer', 'status_id' => 'required|integer', - 'company_id' => 'integer', + 'company_id' => 'integer|nullable', 'warranty_months' => 'numeric|max:240|nullable', 'physical' => 'numeric|max:1|nullable', - 'checkout_date' => 'date|max:10|min:10', - 'checkin_date' => 'date|max:10|min:10', + 'checkout_date' => 'date|max:10|min:10|nullable', + 'checkin_date' => 'date|max:10|min:10|nullable', 'supplier_id' => 'numeric|nullable', 'asset_tag' => 'required|min:1|max:255|unique_undeleted', 'status' => 'integer',