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