search suggestions start
This commit is contained in:
parent
b2b0aaabbf
commit
7c32eda445
|
|
@ -129,9 +129,9 @@ class Products extends ProductController
|
|||
->limit(10)
|
||||
->get();
|
||||
|
||||
$products = $this->productRepository->getAll()->data->only('id','name');
|
||||
$products = $this->productRepository->getAll()->items;
|
||||
|
||||
return $products;
|
||||
return $products->only('id','name');
|
||||
|
||||
if($brands->count() >0){
|
||||
foreach($brands as $brand) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue