search suggestions start

This commit is contained in:
merdan 2022-04-17 15:11:47 +05:00
parent cf39cc4951
commit 0beaf6457b
1 changed files with 3 additions and 0 deletions

View File

@ -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);