mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-23 12:44:12 -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);
|
||||
|
||||
$kits = PredefinedKit::query();
|
||||
$kits = PredefinedKit::query()->with('adminuser');
|
||||
|
||||
if ($request->filled('search')) {
|
||||
$kits = $kits->TextSearch($request->input('search'));
|
||||
|
|
Loading…
Reference in a new issue