A free open source IT asset/license management system
Add explicit select back to query
Marcus Moorea8133f62e81c
diff --git a/app/Http/Controllers/Api/ConsumablesController.php b/app/Http/Controllers/Api/ConsumablesController.phpindex 385f306c25..ba7e6fb302 100644--- a/app/Http/Controllers/Api/ConsumablesController.php+++ b/app/Http/Controllers/Api/ConsumablesController.php@@ -45,7 +45,8 @@ class ConsumablesController extends Controller'notes',];- $consumables = Consumable::with('company', 'location', 'category', 'users', 'manufacturer');+ $consumables = Consumable::select('consumables.*')+ ->with('company', 'location', 'category', 'users', 'manufacturer');if ($request->filled('search')) {$consumables = $consumables->TextSearch(e($request->input('search')));