Add explicit select back to query

This commit is contained in:
Marcus Moore 2023-06-22 13:07:49 -07:00
parent a333d7b72f
commit a8133f62e8
No known key found for this signature in database

View file

@ -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')));