src/Database/Scope/Scope.php
public function applyToRelation(BelongsToMany $relation)
    {
        $this->applyToRelationQuery(
            $relation->getQuery(),
            $relation->getTable()
        );

        return $relation;
    }
public function applyToRelation(BelongsToMany $relation)
    {
        $this->applyToRelationQuery(
            $relation->getQuery(),
            $relation->getTable()
        );

        return $relation;
    }
public function applyToRelation ( BelongsToMany $ relation ) { $ this -> applyToRelationQuery ( $ relation -> getQuery ( ) , $ relation -> getTable ( ) ) ; return $ relation ; }
Scope the given relation to the current tenant.

@param  \Illuminate\Database\Eloquent\Relations\BelongsToMany  $relation
@return \Illuminate\Database\Eloquent\Relations\BelongsToMany
Scope the given relation to the current tenant .