protected function backupFieldsForCount()
    {
        foreach (['orders', 'limit', 'offset', 'columns'] as $field) {
            $this->backups[$field] = $this->{$field};

            $this->{$field} = null;
        }

        foreach (['order', 'select'] as $key) {
            $this->bindingBackups[$key] = $this->bindings[$key];

            $this->bindings[$key] = [];
        }
    }
protected function backupFieldsForCount()
    {
        foreach (['orders', 'limit', 'offset', 'columns'] as $field) {
            $this->backups[$field] = $this->{$field};

            $this->{$field} = null;
        }

        foreach (['order', 'select'] as $key) {
            $this->bindingBackups[$key] = $this->bindings[$key];

            $this->bindings[$key] = [];
        }
    }
protected function backupFieldsForCount ( ) { foreach ( [ 'orders' , 'limit' , 'offset' , 'columns' ] as $ field ) { $ this -> backups [ $ field ] = $ this -> { $ field } ; $ this -> { $ field } = null ; } foreach ( [ 'order' , 'select' ] as $ key ) { $ this -> bindingBackups [ $ key ] = $ this -> bindings [ $ key ] ; $ this -> bindings [ $ key ] = [ ] ; } }
Backup then remove some fields for the pagination count.

@return void
Backup then remove some fields for the pagination count .