SyntaxFix
Write A Post
Hire A Developer
Questions
Product::from('products as p') ->join('product_category as pc','p.id','=','pc.product_id') ->select('p.*') ->where('p.active',1) ->whereIn('pc.category_id', ['223', '15']) ->get();