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

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

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

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

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

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

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

@return array|static
Get all visible column names .