cache responces achyklar

This commit is contained in:
merdan 2022-12-21 17:12:15 +05:00
parent 819bfee12f
commit 967ec8b048
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->withCount('flats')->having('flats_count', '>', 1)
->orderBy('position', 'desc')
->orderBy('name', 'asc');
return $query->withCount('flats')->having('flats_count', '>', 1);
});