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); }