id = $id; } public function validate($attribute, $value, $fail): void { if (Debiture::where($attribute, $value) ->where('id', '!=', $this->id) ->where($attribute, '!=', '000000') ->exists()) { $fail('The :attribute field must be uniquse.'.$this->id); } } }