search suggestions start

This commit is contained in:
merdan 2022-04-17 14:58:18 +05:00
parent f72dc07e08
commit e65e207d1f
1 changed files with 2 additions and 1 deletions

View File

@ -146,7 +146,8 @@ class Products extends ProductController
->where('channel', $channel)
->where('locale', $locale)
->take(10)
->query(fn ($query) => $query->select('id','name',DB::raw("'product' as 'type'" ))->orderBy('name'))
->query(fn ($query) => $query->select('id','name',DB::raw("'product' as type" ))
->orderBy('name'))
->get();;
return [$products,$brands];