src/Listify.php
protected function listifyScopedQuery()
    {
        $model = new static;

        $model->setListifyConfig('scope', $this->listifyScopeCondition());

        // if set, call a method that may be used to remove global scopes
        // and other automatically active listify-scope breaking clauses
        if (method_exists($this, 'cleanListifyScopedQuery')) {
            $model = $this->cleanListifyScopedQuery($model);
        }

        return $model->whereRaw($this->listifyScopeCondition());
    }
protected function listifyScopedQuery()
    {
        $model = new static;

        $model->setListifyConfig('scope', $this->listifyScopeCondition());

        // if set, call a method that may be used to remove global scopes
        // and other automatically active listify-scope breaking clauses
        if (method_exists($this, 'cleanListifyScopedQuery')) {
            $model = $this->cleanListifyScopedQuery($model);
        }

        return $model->whereRaw($this->listifyScopeCondition());
    }
protected function listifyScopedQuery ( ) { $ model = new static ; $ model -> setListifyConfig ( 'scope' , $ this -> listifyScopeCondition ( ) ) ; // if set, call a method that may be used to remove global scopes // and other automatically active listify-scope breaking clauses if ( method_exists ( $ this , 'cleanListifyScopedQuery' ) ) { $ model = $ this -> cleanListifyScopedQuery ( $ model ) ; } return $ model -> whereRaw ( $ this -> listifyScopeCondition ( ) ) ; }
Returns a fresh query builder after re-applying the listify scope condition.

@return Builder
Returns a fresh query builder after re - applying the listify scope condition .