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

        return collect($tenants)->diff($this->tenants->pluck('id'))->isEmpty();
    }
public function hasAllTenants($tenants): bool
    {
        $tenants = $this->prepareTenantIds($tenants);

        return collect($tenants)->diff($this->tenants->pluck('id'))->isEmpty();
    }
public function hasAllTenants ( $ tenants ) : bool { $ tenants = $ this -> prepareTenantIds ( $ tenants ) ; return collect ( $ tenants ) -> diff ( $ this -> tenants -> pluck ( 'id' ) ) -> isEmpty ( ) ; }
Determine if the model has all of the given tenants.

@param mixed $tenants

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