laravel join multiple conditions code example
Example 1: laravel where multiple conditions
$query->where([
['column_1', '=', 'value_1'],
['column_2', '<>', 'value_2'],
[COLUMN, OPERATOR, VALUE],
...
])
Example 2: join multiple query in laravel
$select->joinSub(
$selectSubQry,
'ag',
'ag.id',
'=',
'agp.userId'
);