sarga filters

This commit is contained in:
merdan 2022-05-04 17:11:03 +05:00
parent d716c13ae8
commit 112860ffd4
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ class Brands extends \Webkul\RestApi\Http\Controllers\V1\Shop\ResourceController
$query = $query->where('name','like', '%'.$key.'%');
}
if($category = $request->input('search')){
if($category = $request->input('category')){
$query = $query->rightJoin('category_brands','brands.id','=','category_brands.brand_id')
->where('category_brands.category_id',$category);
}