join 3 table in laravel with where clause:greeper code example
Example: join multiple query in laravel
$select->joinSub(
$selectSubQry,
'ag',
'ag.id',
'=',
'agp.userId'
);