search suggestions start
This commit is contained in:
parent
975ea96bcf
commit
c1fbface36
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue