how to join multiple tables with eloquent relationships in laravel code example
Example: laravel join 2 tables eloquent
$select->joinSub(
$selectSubQry,
'ag',
'ag.id',
'=',
'agp.userId'
);