src/ExtendedRepository.php
public function addScope($scope, $parameters = [])
    {
        if ( ! in_array($scope, $this->scopes)) {

            $this->scopes[] = $scope;
        }

        $this->scopeParameters[ $scope ] = $parameters;

        $this->refreshSettingDependentCriteria();
        return $this;
    }
public function addScope($scope, $parameters = [])
    {
        if ( ! in_array($scope, $this->scopes)) {

            $this->scopes[] = $scope;
        }

        $this->scopeParameters[ $scope ] = $parameters;

        $this->refreshSettingDependentCriteria();
        return $this;
    }
public function addScope ( $ scope , $ parameters = [ ] ) { if ( ! in_array ( $ scope , $ this -> scopes ) ) { $ this -> scopes [ ] = $ scope ; } $ this -> scopeParameters [ $ scope ] = $ parameters ; $ this -> refreshSettingDependentCriteria ( ) ; return $ this ; }
Adds a scope to enforce, overwrites with new parameters if it already exists

@param  string $scope
@param  array  $parameters
@return self
Adds a scope to enforce overwrites with new parameters if it already exists