src/Database/Scope/BaseTenantScope.php
public static function register($model)
    {
        if (interface_exists(EloquentScope::class)) {
            $model::addGlobalScope(new TenantScope);
        } else {
            $model::addGlobalScope(new LegacyTenantScope);
        }
    }
public static function register($model)
    {
        if (interface_exists(EloquentScope::class)) {
            $model::addGlobalScope(new TenantScope);
        } else {
            $model::addGlobalScope(new LegacyTenantScope);
        }
    }
public static function register ( $ model ) { if ( interface_exists ( EloquentScope :: class ) ) { $ model :: addGlobalScope ( new TenantScope ) ; } else { $ model :: addGlobalScope ( new LegacyTenantScope ) ; } }
Register the correct global scope class.

@param  string  $model
@return void
Register the correct global scope class .