laravel join two tables order by code example
Example: laravel join 2 tables eloquent
$select->joinSub(
$selectSubQry,
'ag',
'ag.id',
'=',
'agp.userId'
);