From 0e0b31bba692123894479bd6f04998ca36832e98 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 31 May 2016 15:04:13 -0700 Subject: [PATCH] Company name length to 1 --- app/Models/Company.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Models/Company.php b/app/Models/Company.php index 17d26ade9..ce4ef4bf4 100644 --- a/app/Models/Company.php +++ b/app/Models/Company.php @@ -14,8 +14,7 @@ final class Company extends Model protected $table = 'companies'; // Declare the rules for the model validation - protected $rules = ['name' => 'required|min:2|max:255|unique:companies,name']; - + protected $rules = ['name' => 'required|min:1|max:255|unique:companies,name']; /** * Whether the model should inject it's identifier to the unique * validation rules before attempting validation. If this property