Eager load adminuser

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-09-19 19:41:46 +01:00
parent 118183ff58
commit eb6f05faf7

View file

@ -24,7 +24,7 @@ class PredefinedKitsController extends Controller
{ {
$this->authorize('view', PredefinedKit::class); $this->authorize('view', PredefinedKit::class);
$kits = PredefinedKit::query(); $kits = PredefinedKit::query()->with('adminuser');
if ($request->filled('search')) { if ($request->filled('search')) {
$kits = $kits->TextSearch($request->input('search')); $kits = $kits->TextSearch($request->input('search'));