menu brand links test ready
This commit is contained in:
parent
2b6b27318b
commit
35f91d0448
|
|
@ -72,12 +72,13 @@ class SearchController extends V1Controller
|
||||||
$products = $this->productFlatRepository->getModel()::search(implode(' OR ', $key))
|
$products = $this->productFlatRepository->getModel()::search(implode(' OR ', $key))
|
||||||
// ->where('channel', $channel)
|
// ->where('channel', $channel)
|
||||||
// ->where('locale', $locale)
|
// ->where('locale', $locale)
|
||||||
->take(10)
|
->take(100)
|
||||||
->query(fn ($query) => $query->select('id','name','product_id','description')
|
->query(fn ($query) => $query->select('id','name','product_id','description')
|
||||||
->where('status', 1)
|
->where('status', 1)
|
||||||
->where('visible_individually', 1)
|
->where('visible_individually', 1)
|
||||||
// ->addSelect(DB::raw("\'product\' as type" ))
|
// ->addSelect(DB::raw("\'product\' as type" ))
|
||||||
->orderBy('name'))
|
->orderBy('name'))
|
||||||
|
->take(10)
|
||||||
->get();
|
->get();
|
||||||
|
|
||||||
if($products->count()){
|
if($products->count()){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue