mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
Eager load adminuser
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
118183ff58
commit
eb6f05faf7
|
@ -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…
Reference in a new issue