cache responces achyklar
This commit is contained in:
parent
b72a20050f
commit
49f205fb30
|
|
@ -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');
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue