search suggestions start
This commit is contained in:
parent
cf39cc4951
commit
0beaf6457b
|
|
@ -135,6 +135,9 @@ class Products extends ProductController
|
|||
->query(fn ($query) => $query->select('id','name')->orderBy('name'))
|
||||
->get();
|
||||
|
||||
if($brands->count()){
|
||||
$brands->flatMap(fn ($val) => $val['type']='brand');
|
||||
}
|
||||
|
||||
// $products = $this->productRepository->searchProductByAttribute($key);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue