cache responces achyklar

This commit is contained in:
merdan 2022-12-21 17:05:16 +05:00
parent b72a20050f
commit 49f205fb30
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class Brands extends \Webkul\RestApi\Http\Controllers\V1\Shop\ResourceController
return $query->orderBy($sort, $request->input('order') ?? 'asc');
}
return $query->has('flats','>',1)
return $query->withCount('flats')->having('flats_count', '>', 0)
->orderBy('position', 'desc')
->orderBy('name', 'asc');
});