alias('a') ->join('product b', 'a.product_id = b.product_id') ->where($condition) ->paginate(10); return $result; } }