📜  Laravel 8 查询生成器,左连接右连接子句 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:50.552000             🧑  作者: Mango

代码示例2
->leftJoin('table3 AS c', function($join){
        $join->on('a.field2', '=', 'c.field2')
        ->where('a.field2', '=', true)
        ->where('a.field3', '=', 'c.field3');
})