suggestion
This commit is contained in:
parent
9ad20050b1
commit
ae83ee4c81
|
|
@ -28,13 +28,13 @@ class SearchController extends V1Controller
|
|||
|
||||
$queries = explode(' ', $key);
|
||||
|
||||
$brands =$this->searchBrands($queries);
|
||||
// $brands =$this->searchBrands($queries);
|
||||
|
||||
$products = $this->searchProducts($queries);
|
||||
|
||||
$categories = $this->searchCategories($queries);
|
||||
|
||||
return Suggestion::collection($products->merge($brands)->merge($categories)->sortBy('name'));
|
||||
return Suggestion::collection($products->merge($categories)->sortBy('name'));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue