Whoops, I misread the documentation, my query simply had to be set up like this:
->join('wheres', function($join)
{
$join->on('v.id', '=', 'wheres.vacation_id')
->where('wheres.finalized', '=', 1)
->orWhere('wheres.finalized', '=', 2);
})
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community