Skip to content
Advertisement

Laravel Eloquent – Get data from 3 tables with consecutive foreign keys

I’m looking for a way to join 3 Data Tables.

Laravel Query;

How to fetch data from table ‘c’ by applying a query on table ‘a’?

i’m new to Laravel.

Advertisement

Answer

Basically, it is not as much related to laravel it needs knowledge of the database. You can join 3 tables like this.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement