public static function register($model)
    {
        if (interface_exists(EloquentScope::class)) {
            $model::addGlobalScope(new TenantScope);
        } else {
            $model::addGlobalScope(new LegacyTenantScope);
        }
    }