src/Tenantable.php
public function tenantsWithGroup(string $group = null): Collection
    {
        return $this->tenants->filter(function (Tenant $tenant) use ($group) {
            return $tenant->group === $group;
        });
    }
public function tenantsWithGroup(string $group = null): Collection
    {
        return $this->tenants->filter(function (Tenant $tenant) use ($group) {
            return $tenant->group === $group;
        });
    }
public function tenantsWithGroup ( string $ group = null ) : Collection { return $ this -> tenants -> filter ( function ( Tenant $ tenant ) use ( $ group ) { return $ tenant -> group === $ group ; } ) ; }
Filter tenants with group.

@param string|null $group

@return \Illuminate\Database\Eloquent\Collection
Filter tenants with group .