From eb6f05faf7f2f6c94a56d93ee95fd48c44f60a9f Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 19 Sep 2024 19:41:46 +0100 Subject: [PATCH] Eager load adminuser Signed-off-by: snipe --- app/Http/Controllers/Api/PredefinedKitsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/PredefinedKitsController.php b/app/Http/Controllers/Api/PredefinedKitsController.php index 7b9e8f3ac9..24f1320185 100644 --- a/app/Http/Controllers/Api/PredefinedKitsController.php +++ b/app/Http/Controllers/Api/PredefinedKitsController.php @@ -24,7 +24,7 @@ class PredefinedKitsController extends Controller { $this->authorize('view', PredefinedKit::class); - $kits = PredefinedKit::query(); + $kits = PredefinedKit::query()->with('adminuser'); if ($request->filled('search')) { $kits = $kits->TextSearch($request->input('search'));