From 1f1af1069942f951d5cee13a1d810e65f1c79d10 Mon Sep 17 00:00:00 2001 From: liapples Date: Tue, 19 Oct 2021 12:26:14 +0800 Subject: [PATCH] number->decimal --- app/Admin/Forms/Setting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()