mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Eager load suppliers
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
67d6f7119d
commit
00d7b36c36
|
@ -28,7 +28,7 @@ class ConsumablesController extends Controller
|
|||
{
|
||||
$this->authorize('index', Consumable::class);
|
||||
|
||||
$consumables = Consumable::with('company', 'location', 'category', 'manufacturer')
|
||||
$consumables = Consumable::with('company', 'location', 'category', 'supplier', 'manufacturer')
|
||||
->withCount('users as consumables_users_count');
|
||||
|
||||
if ($request->filled('search')) {
|
||||
|
|
Loading…
Reference in a new issue