src/Database/Models.php
public static function scope(ScopeContract $scope = null)
    {
        if (! is_null($scope)) {
            return static::$scope = $scope;
        }

        if (is_null(static::$scope)) {
            static::$scope = new Scope;
        }

        return static::$scope;
    }
public static function scope(ScopeContract $scope = null)
    {
        if (! is_null($scope)) {
            return static::$scope = $scope;
        }

        if (is_null(static::$scope)) {
            static::$scope = new Scope;
        }

        return static::$scope;
    }
public static function scope ( ScopeContract $ scope = null ) { if ( ! is_null ( $ scope ) ) { return static :: $ scope = $ scope ; } if ( is_null ( static :: $ scope ) ) { static :: $ scope = new Scope ; } return static :: $ scope ; }
Get or set the model scoping instance.

@param  \Silber\Bouncer\Contracts\Scope|null  $scope
@return mixed
Get or set the model scoping instance .