From 9d0b825071f10d65df77a8458e1f46a5c9f9b058 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Sun, 18 Dec 2022 18:14:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E6=9B=B4=E5=A4=9A?= =?UTF-8?q?=E7=9A=84=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Admin/HostController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Admin/HostController.php b/app/Http/Controllers/Admin/HostController.php index 5fbb8e9..758981f 100644 --- a/app/Http/Controllers/Admin/HostController.php +++ b/app/Http/Controllers/Admin/HostController.php @@ -23,7 +23,7 @@ public function index(Request $request): View $hosts = Host::with('user'); // 遍历所有的搜索条件 - foreach (['name', 'module_id', 'status', 'user_id'] as $field) { + foreach (['name', 'module_id', 'status', 'user_id', 'price', 'managed_price', 'created_at', 'updated_at'] as $field) { if ($request->has($field)) { $hosts->where($field, 'like', '%' . $request->input($field) . '%'); }