mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-24 04:03:34 -08:00
Add explicit select back to query
This commit is contained in:
parent
a333d7b72f
commit
a8133f62e8
|
@ -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')));
|
||||
|
|
Loading…
Reference in a new issue