Does anyone know if this new feature can be performed on multiple relationships?
For example, I have a query where I want to filter on not only the club name (relate
I don't think you need 'with' as there is 'wherehas'
Model::whereHas('territory',function( $query ){
$query->where('region','Australia');
})->whereHas('homeClub', function ( $query ) {
$query->where('name', 'Arsenal' );
})->orWhereHas('awayClub', function ( $query ) {
$query->where('name', 'Arsenal' );
});