Illuminate\Database\Query\Builder::restoreFieldsForCount PHP Méthode

restoreFieldsForCount() protected méthode

Restore some fields after the pagination count.
protected restoreFieldsForCount ( ) : void
Résultat void
    protected function restoreFieldsForCount()
    {
        foreach (['orders', 'limit', 'offset', 'columns'] as $field) {
            $this->{$field} = $this->backups[$field];
        }
        foreach (['order', 'select'] as $key) {
            $this->bindings[$key] = $this->bindingBackups[$key];
        }
        $this->backups = [];
        $this->bindingBackups = [];
    }