search suggestions start

This commit is contained in:
merdan 2022-04-16 20:52:44 +05:00
parent 975ea96bcf
commit c1fbface36
1 changed files with 6 additions and 5 deletions

View File

@ -125,11 +125,12 @@ class Products extends ProductController
$queries = explode(' ', $key);
// $brands = $brandRepository->getModel()::search(implode(' OR ', $queries))
// ->where('status',1)
// ->orderBy('name','asc')
// ->take(10)
// ->get();
$brands = $brandRepository->getModel()::search(implode(' OR ', $queries))
->where('status',1)
->orderBy('name','asc')
->take(10)
->get();
return $brands;
// $products = $this->productRepository->searchProductByAttribute($key);