search fix

This commit is contained in:
merdan 2023-09-15 15:48:19 +05:00
parent bf76a3f038
commit 7e3c6836e0
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ class BrandRepository extends Repository
public function search($key){
$brands = $this->getModel()::search(implode(' OR ', $key))
// ->where('status',1)
// ->orderBy('name','asc')
->orderBy('name','asc')
->take(10)
->query(fn ($query) => $query->select('id','name')->orderBy('name'))
->get();