Commit f2ae4605 by 赵增煜

必填项调整

parent ca3cd6b5
......@@ -117,8 +117,8 @@ protected function form()
$form->column(6, function (Form $form) {
$form->display('id');
$form->text('name')->required()->maxLength(64, '最多输入64个字符');
$form->text('area')->required()->maxLength(64, '最多输入64个字符');
$form->text('address')->required()->maxLength(128, '最多输入128个字符');
$form->text('area')->maxLength(64, '最多输入64个字符');
$form->text('address')->maxLength(128, '最多输入128个字符');
$form->mobile('mobile')->required()->help('药店登录账号')->rules(function (Form $form) {
// 如果不是编辑状态,则添加字段唯一验证
if (! $id = $form->model()->id) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment