src/Traits/Tenantable.php
public function hasTenants($tenants): bool
    {
        $tenants = $this->prepareTenantIds($tenants);

        return ! $this->tenants->pluck('id')->intersect($tenants)->isEmpty();
    }
public function hasTenants($tenants): bool
    {
        $tenants = $this->prepareTenantIds($tenants);

        return ! $this->tenants->pluck('id')->intersect($tenants)->isEmpty();
    }
public function hasTenants ( $ tenants ) : bool { $ tenants = $ this -> prepareTenantIds ( $ tenants ) ; return ! $ this -> tenants -> pluck ( 'id' ) -> intersect ( $ tenants ) -> isEmpty ( ) ; }
Determine if the model has any of the given tenants.

@param mixed $tenants

@return bool
Determine if the model has any of the given tenants .