Support the ongoing development of Laravel.io →
posted 9 years ago
Database

Hello Please can somebody help me with an ideea how can I make in laravel complex join with join in join. Somethig like this Model::join(users, function($x){ $x->on(table.id,=,users.id_table); $x->join(second_table,function($y){ $y->on(second_table.id,=,user.id_secpndtable); }); }); Thanks for all

Last updated 3 years ago.
0

refer to https://laravel.com/docs/5.1/queries#joins see "advanced join statements"

0

It`s not working if I use join inside function. Inside function can I use only condition not relation sintax. Thank you

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.