diff --git a/packages/Sarga/API/Http/Controllers/Brands.php b/packages/Sarga/API/Http/Controllers/Brands.php index 995854f52..bc316f00e 100644 --- a/packages/Sarga/API/Http/Controllers/Brands.php +++ b/packages/Sarga/API/Http/Controllers/Brands.php @@ -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);