From e73e41c7dbbb1281b32dfaaed3df363e58b1ef53 Mon Sep 17 00:00:00 2001 From: Daeng Deni Mardaeni Date: Thu, 24 Oct 2024 14:37:27 +0700 Subject: [PATCH] Change unique Zero CIF from 6 digit to 10 --- app/Rules/UniqueCifExceptZero.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Rules/UniqueCifExceptZero.php b/app/Rules/UniqueCifExceptZero.php index e7236ce..c8173d1 100644 --- a/app/Rules/UniqueCifExceptZero.php +++ b/app/Rules/UniqueCifExceptZero.php @@ -17,7 +17,7 @@ class UniqueCifExceptZero implements ValidationRule { if (Debiture::where($attribute, $value) ->where('id', '!=', $this->id) - ->where($attribute, '!=', '000000') + ->where($attribute, '!=', '0000000000') ->exists()) { $fail('The :attribute field must be uniquse.'.$this->id); }