Commit 6354b84b by lujunyi

必填项

parent 7678e2ac
......@@ -75,7 +75,7 @@ protected function form()
{
return Form::make(new DiagnosiRepository(), function (Form $form) {
$form->display('id')->width(4);
$form->text('name')->width(4);
$form->text('name')->width(4)->required();
$form->text('content')->width(4);
$form->text('code')->width(4);
......
......@@ -73,7 +73,7 @@ protected function form()
{
return Form::make(new InquiryRepository(), function (Form $form) {
$form->display('id')->width(4);
$form->text('question')->width(4);
$form->text('question')->width(4)->required();
$form->switch('is_common')->default(1)->width(4);
$form->display('created_at')->width(4);
......
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