How to convert this raw query to Laravel eloquent way:
select c.name as country from country c, address ad, city ci where
ad.id = 1 and city.id = ad.city_id and c.code = ci.country_code
How to convert this raw query to Laravel eloquent way:
select c.name as country from country c, address ad, city ci where
ad.id = 1 and city.id = ad.city_id and c.code = ci.country_code
First link
Second link
Query Builder
Eloquent
I will modify the answer from
Andrey Lutscevich
eloquent part