COnvert it to laravel : Need to convert this sql code to laravel

SELECT b.name FROM brands b
INNER JOIN products p
on b.id=p.brand_id
INNER JOIN transaction_sell_lines tr
on p.brand_id=tr.product_id

SELECT b.name FROM brands b
INNER JOIN products p
on b.id=p.brand_id
INNER JOIN transaction_sell_lines tr
on p.brand_id=tr.product_id

Need to get the laravel code