setter
parent
fb68cdb945
commit
4f4816142a
|
@ -45,7 +45,7 @@ class Category extends Base
|
||||||
$item = input('post.');
|
$item = input('post.');
|
||||||
$validate = $this->validateByApi($item, [
|
$validate = $this->validateByApi($item, [
|
||||||
'pid|父级分类' => 'require|number',
|
'pid|父级分类' => 'require|number',
|
||||||
'name|标题' => 'require|max:100|unique:disease,name,'.$id,
|
'name|标题' => 'require|max:100',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if ($validate !== true) {
|
if ($validate !== true) {
|
||||||
|
|
Loading…
Reference in New Issue