Answers for "perform a join in laravel on condition"

PHP
0

How to add a additional condition in a join using query builder laravel 5.3?

->leftJoin('table3 AS c', function($join){
        $join->on('a.field2', '=', 'c.field2')
        ->where('a.field2', '=', true)
        ->where('a.field3', '=', 'c.field3');
})
Posted by: Guest on June-23-2021
1

laravel outer join

->join('answers as answers', 'responses.answer_id', '=', 'answers.id', 'left outer')
Posted by: Guest on June-05-2020

Code answers related to "perform a join in laravel on condition"

Browse Popular Code Answers by Language