A free open source IT asset/license management system
Eager load suppliers
snipe00d7b36c3653
diff --git a/app/Http/Controllers/Api/ConsumablesController.php b/app/Http/Controllers/Api/ConsumablesController.phpindex ccb0593d73..1665b7f4f0 100644--- a/app/Http/Controllers/Api/ConsumablesController.php+++ b/app/Http/Controllers/Api/ConsumablesController.php@@ -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')) {