src/ExtendedRepository.php
public function removeScope($scope)
    {
        $this->scopes = array_diff($this->scopes, [ $scope ]);

        unset($this->scopeParameters[ $scope ]);

        $this->refreshSettingDependentCriteria();
        return $this;
    }
public function removeScope($scope)
    {
        $this->scopes = array_diff($this->scopes, [ $scope ]);

        unset($this->scopeParameters[ $scope ]);

        $this->refreshSettingDependentCriteria();
        return $this;
    }
public function removeScope ( $ scope ) { $ this -> scopes = array_diff ( $ this -> scopes , [ $ scope ] ) ; unset ( $ this -> scopeParameters [ $ scope ] ) ; $ this -> refreshSettingDependentCriteria ( ) ; return $ this ; }
Adds a scope to enforce

@param  string $scope
@return self
Adds a scope to enforce