cache responces achyklar

This commit is contained in:
merdan 2022-12-21 17:01:07 +05:00
parent 49c7712526
commit d18bf7a494
1 changed files with 1 additions and 3 deletions

View File

@ -66,9 +66,7 @@ class Brands extends \Webkul\RestApi\Http\Controllers\V1\Shop\ResourceController
return $query->orderBy($sort, $request->input('order') ?? 'asc');
}
return $query->whereHas('flats', function($q){
$q->where('product_flat.status',1);
})
return $query->whereHas('flats','>',1)
->orderBy('position', 'desc')
->orderBy('name', 'asc');
});