From 4fc412ce3d998b51dabc121e8eb7a63f3fc94b37 Mon Sep 17 00:00:00 2001 From: liapples Date: Tue, 24 Aug 2021 16:32:33 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=90=E8=97=8F=E5=88=9B=E5=BB=BA=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Admin/Controllers/ProductController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Admin/Controllers/ProductController.php b/app/Admin/Controllers/ProductController.php index 0323d8e..65e8785 100644 --- a/app/Admin/Controllers/ProductController.php +++ b/app/Admin/Controllers/ProductController.php @@ -24,6 +24,7 @@ class ProductController extends AdminController protected function grid() { return Grid::make(new Product(['supplier:id,name', 'category:id,name']), function (Grid $grid) { + $grid->disableCreateButton(); //如果是审核页面,多加where条件判断 if (strpos(Route::current()->uri, 'audit')) { $grid->model()->where('status', ProductStatus::UNAUDITED);