Change unique Zero CIF from 6 digit to 10

This commit is contained in:
Daeng Deni Mardaeni
2024-10-24 14:37:27 +07:00
parent 2d9f5ae326
commit e73e41c7db

View File

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