search suggestions start
This commit is contained in:
parent
e65e207d1f
commit
a85a820a1f
|
|
@ -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" ))
|
||||
->query(fn ($query) => $query->select('id','name')
|
||||
->addSelect(DB::raw("\'product\' as type" ))
|
||||
->orderBy('name'))
|
||||
->get();;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue