Add explicit select back to query

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

View file

@ -44,7 +44,8 @@ class ComponentsController extends Controller
'notes', 'notes',
]; ];
$components = Component::with('company', 'location', 'category', 'assets', 'supplier'); $components = Component::select('components.*')
->with('company', 'location', 'category', 'assets', 'supplier');
if ($request->filled('search')) { if ($request->filled('search')) {
$components = $components->TextSearch($request->input('search')); $components = $components->TextSearch($request->input('search'));