search fix
This commit is contained in:
parent
bf76a3f038
commit
7e3c6836e0
|
|
@ -101,7 +101,7 @@ class BrandRepository extends Repository
|
||||||
public function search($key){
|
public function search($key){
|
||||||
$brands = $this->getModel()::search(implode(' OR ', $key))
|
$brands = $this->getModel()::search(implode(' OR ', $key))
|
||||||
// ->where('status',1)
|
// ->where('status',1)
|
||||||
// ->orderBy('name','asc')
|
->orderBy('name','asc')
|
||||||
->take(10)
|
->take(10)
|
||||||
->query(fn ($query) => $query->select('id','name')->orderBy('name'))
|
->query(fn ($query) => $query->select('id','name')->orderBy('name'))
|
||||||
->get();
|
->get();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue