diff --git a/app/Admin/Forms/Setting.php b/app/Admin/Forms/Setting.php index cc4d63c..1d275e9 100644 --- a/app/Admin/Forms/Setting.php +++ b/app/Admin/Forms/Setting.php @@ -29,7 +29,7 @@ class Setting extends Form public function form() { $this->tab('入驻配置', function () { - $this->decimal('settled_supplier_cost', '供应商入驻费(元)')->min(0)->default(0)->required(); + $this->decimal('settled_supplier_cost', '供应商入驻费(元)')->rules('min:0')->default(0)->required(); $this->file('settled_supplier_contract', '供应商入驻合同')->uniqueName()->autoUpload()->required() ->help('建议为doc/docx/pdf格式,供应商可在入驻页面下载后打印'); $this->file('settled_supplier_agreement', '供应商入驻协议')->uniqueName()->autoUpload()->required()