Eager load adminuser
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
118183ff58
commit
eb6f05faf7
1 changed files with 1 additions and 1 deletions
|
@ -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'));
|
||||||
|
|
Loading…
Add table
Reference in a new issue