Como pudiera realizar este query utilizando eloquent y laravel?
SELECT
`product_id`, `sum(total)`
FROM (
SELECT
`product_id`, `count(*) total`
FROM `product_category`
WHERE `category_id` IN ('223', '15')
GROUP BY `product_id`
union all
SELECT
`product_id`, `count(*) total`
FROM `product_category`
GROUP BY `product_id`
WHERE `category_id` IN ('223', '15')
)
GROUP BY `product_id`