From 7df1da1c82980ce279ace57135318fa6736beb4e Mon Sep 17 00:00:00 2001 From: Tofandel Date: Thu, 11 Jul 2024 17:25:37 +0200 Subject: [PATCH] Lint --- src/Http/Controllers/Admin/DashboardController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Http/Controllers/Admin/DashboardController.php b/src/Http/Controllers/Admin/DashboardController.php index c21c27fb1..1174b8a2a 100644 --- a/src/Http/Controllers/Admin/DashboardController.php +++ b/src/Http/Controllers/Admin/DashboardController.php @@ -123,8 +123,8 @@ public function search(Request $request): Collection $found = $repository->cmsSearch( $request->get('search'), - $module['search_fields'] ?? ['title'], - isset($module['parentRelationship']) ? fn ($q) => $q->whereHas($module['parentRelationship']) : null + $module['search_fields'] ?? ['title'], + isset($module['parentRelationship']) ? fn($q) => $q->whereHas($module['parentRelationship']) : null )->take(10); return $found->map(function ($item) use ($module) {