left and right join in laravel code example
Example 1: laravel outer join
->join('answers as answers', 'responses.answer_id', '=', 'answers.id', 'left outer')
Example 2: laravel find query
$model = App\Models\Flight::where('legs', '>', 100)
->firstOr(['id', 'legs'], function () {
// ...
});