Commit fba939e1 by 宁成龙

增加必填

parent 90d1b198
Showing with 2 additions and 2 deletions
...@@ -58,11 +58,11 @@ class EditUserHandle extends Form implements LazyRenderable ...@@ -58,11 +58,11 @@ class EditUserHandle extends Form implements LazyRenderable
}); });
$this->row(function (Row $form) { $this->row(function (Row $form) {
$form->width(5)->text('first_name')->required(); $form->width(5)->text('first_name')->required();
$form->width(5)->text('last_name'); $form->width(5)->text('last_name')->required();
}); });
$this->row(function (Row $form) { $this->row(function (Row $form) {
$form->width(5)->mobile('phone')->required(); $form->width(5)->mobile('phone')->required();
$form->width(5)->email('email'); $form->width(5)->email('email')->required();
}); });
$this->row(function (Row $form) { $this->row(function (Row $form) {
$form->width(5)->select('account_properties')->options(admin_trans('user.options.account_properties'))->required(); $form->width(5)->select('account_properties')->options(admin_trans('user.options.account_properties'))->required();
......
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