mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-29 12:41:10 -04:00
fix customer request
This commit is contained in:
@ -119,7 +119,7 @@ class CustomerRequest extends FormRequest
|
|||||||
$rules['email'] = [
|
$rules['email'] = [
|
||||||
'email',
|
'email',
|
||||||
'nullable',
|
'nullable',
|
||||||
Rule::unique('customers')->ignore($this->route('customer')->id),
|
Rule::unique('customers')->where('company_id', $this->header('company'))->ignore($this->route('customer')->id),
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user