Change unique Zero CIF from 6 digit to 10
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user