public function visibleColumns()
    {
        $visible = array_filter(explode(',', request(Tools\ColumnSelector::SELECT_COLUMN_NAME)));

        if (empty($visible)) {
            return $this->columns;
        }

        array_push($visible, '__row_selector__', '__actions__');

        return $this->columns->filter(function (Column $column) use ($visible) {
            return in_array($column->getName(), $visible);
        });
    }
public function visibleColumns()
    {
        $visible = array_filter(explode(',', request(Tools\ColumnSelector::SELECT_COLUMN_NAME)));

        if (empty($visible)) {
            return $this->columns;
        }

        array_push($visible, '__row_selector__', '__actions__');

        return $this->columns->filter(function (Column $column) use ($visible) {
            return in_array($column->getName(), $visible);
        });
    }
public function visibleColumns ( ) { $ visible = array_filter ( explode ( ',' , request ( Tools \ ColumnSelector :: SELECT_COLUMN_NAME ) ) ) ; if ( empty ( $ visible ) ) { return $ this -> columns ; } array_push ( $ visible , '__row_selector__' , '__actions__' ) ; return $ this -> columns -> filter ( function ( Column $ column ) use ( $ visible ) { return in_array ( $ column -> getName ( ) , $ visible ) ; } ) ; }
Get all visible column instances.

@return Collection|static
Get all visible column instances .