src/QueryBuilder.php
public function setColumnAttributes(): void
    {
        $columns = $this->request->get('columns');

        if ($columns) {
            $attributes = array_column($columns, null, 'data');

            foreach ($attributes as $index => $attr) {
                if ($this->columns->visible()->isExists($index)) {
                    $this->columns->visible()->get($index)->attr = $attr;
                }
            }
        }
    }
public function setColumnAttributes(): void
    {
        $columns = $this->request->get('columns');

        if ($columns) {
            $attributes = array_column($columns, null, 'data');

            foreach ($attributes as $index => $attr) {
                if ($this->columns->visible()->isExists($index)) {
                    $this->columns->visible()->get($index)->attr = $attr;
                }
            }
        }
    }
public function setColumnAttributes ( ) : void { $ columns = $ this -> request -> get ( 'columns' ) ; if ( $ columns ) { $ attributes = array_column ( $ columns , null , 'data' ) ; foreach ( $ attributes as $ index => $ attr ) { if ( $ this -> columns -> visible ( ) -> isExists ( $ index ) ) { $ this -> columns -> visible ( ) -> get ( $ index ) -> attr = $ attr ; } } } }
Assign column attributes
Assign column attributes