SQL KODUNU LARAVELE UYGUN YAZMA
aşağıdaki kodu nasıl laravele uygun hale getirebilirim
SELECT * from `main_products` WHERE `main_id` IN (
SELECT DISTINCT `main_products`.`main_id` from `main_products` inner join `product_model` on `main_products`.`main_id` = `product_model`.`main_id` and `product_model`.`model_id` IN(SELECT model_id FROM models m WHERE m.path = '1499' OR m.path LIKE '1499_%' ) where `main_products`.`deleted` = 0 ORDER BY main_id
)