客户模块联系人开放联系人手机号码同样限制
This commit is contained in:
parent
7542801721
commit
1ba9636455
@ -13,13 +13,13 @@ class CustomerContactCheck extends Validate
|
|||||||
{
|
{
|
||||||
protected $rule = [
|
protected $rule = [
|
||||||
'name' => 'require',
|
'name' => 'require',
|
||||||
'mobile' => 'require|unique:customer_contact',
|
'mobile' => 'require',
|
||||||
'id' => 'require',
|
'id' => 'require',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $message = [
|
protected $message = [
|
||||||
'name.require' => '联系人姓名不能为空',
|
'name.require' => '联系人姓名不能为空',
|
||||||
'mobile.unique' => '同样的手机号码已经存在',
|
'mobile' => '手机号码不能为空',
|
||||||
'id.require' => '缺少更新条件',
|
'id.require' => '缺少更新条件',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user