mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 12:40:39 -08:00
Add explicit select back to query
This commit is contained in:
parent
a8133f62e8
commit
8aae5beaba
|
@ -44,7 +44,8 @@ class ComponentsController extends Controller
|
|||
'notes',
|
||||
];
|
||||
|
||||
$components = Component::with('company', 'location', 'category', 'assets', 'supplier');
|
||||
$components = Component::select('components.*')
|
||||
->with('company', 'location', 'category', 'assets', 'supplier');
|
||||
|
||||
if ($request->filled('search')) {
|
||||
$components = $components->TextSearch($request->input('search'));
|
||||
|
|
Loading…
Reference in a new issue