search suggestions start

This commit is contained in:
merdan 2022-04-16 15:46:47 +05:00
parent b2b0aaabbf
commit 7c32eda445
1 changed files with 2 additions and 2 deletions

View File

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