protected function newCollectionQuery(array &$options = array(), $modelClass = null)
    {
        $options = array_replace(array(
            'limit'  => null,
            'offset' => null,
        ), $options);

        $query = $this->newQuery($options, $modelClass);

        /*
         * Offset & limit
         */
        if (is_numeric($options['limit'])) {
            $options['limit'] = (int) $options['limit'];
        }
        if (is_numeric($options['offset'])) {
            $options['offset'] = (int) $options['offset'];
        }
        if (is_integer($options['limit'])) {
            $query->limit($options['limit']);
        }
        if (is_integer($options['offset']) && is_integer($options['limit'])) {
            $query->offset($options['offset']);
        }

        return $query;
    }
protected function newCollectionQuery(array &$options = array(), $modelClass = null)
    {
        $options = array_replace(array(
            'limit'  => null,
            'offset' => null,
        ), $options);

        $query = $this->newQuery($options, $modelClass);

        /*
         * Offset & limit
         */
        if (is_numeric($options['limit'])) {
            $options['limit'] = (int) $options['limit'];
        }
        if (is_numeric($options['offset'])) {
            $options['offset'] = (int) $options['offset'];
        }
        if (is_integer($options['limit'])) {
            $query->limit($options['limit']);
        }
        if (is_integer($options['offset']) && is_integer($options['limit'])) {
            $query->offset($options['offset']);
        }

        return $query;
    }
protected function newCollectionQuery ( array & $ options = array ( ) , $ modelClass = null ) { $ options = array_replace ( array ( 'limit' => null , 'offset' => null , ) , $ options ) ; $ query = $ this -> newQuery ( $ options , $ modelClass ) ; /*
         * Offset & limit
         */ if ( is_numeric ( $ options [ 'limit' ] ) ) { $ options [ 'limit' ] = ( int ) $ options [ 'limit' ] ; } if ( is_numeric ( $ options [ 'offset' ] ) ) { $ options [ 'offset' ] = ( int ) $ options [ 'offset' ] ; } if ( is_integer ( $ options [ 'limit' ] ) ) { $ query -> limit ( $ options [ 'limit' ] ) ; } if ( is_integer ( $ options [ 'offset' ] ) && is_integer ( $ options [ 'limit' ] ) ) { $ query -> offset ( $ options [ 'offset' ] ) ; } return $ query ; }
Get new collection query instance.

@param array       $options
@param string|null $modelClass

@return \Illuminate\Database\Eloquent\Builder
Get new collection query instance .