cache responces achyklar

This commit is contained in:
merdan 2022-12-21 13:10:37 +05:00
parent 17976581ef
commit 1d4e119ec5
1 changed files with 3 additions and 3 deletions

View File

@ -68,9 +68,9 @@ class Brands extends \Webkul\RestApi\Http\Controllers\V1\Shop\ResourceController
return $query->orderBy('position', 'desc')->orderBy('name', 'asc');
});
// $query->whereHas('flats', function($q){
// $q->where('status',1);
// });
$query->whereHas('flats', function($q){
$q->where('status',1);
});
if (is_null($request->input('pagination')) || $request->input('pagination')) {
$results = $query->paginate($request->input('limit') ?? 10);