how to get table 3 table data in laravel query in controller with 2nd table being linker table code example
Example: join multiple query in laravel
$select->joinSub(
$selectSubQry,
'ag',
'ag.id',
'=',
'agp.userId'
);