src/Engine/CrudeSetupTrait/Column.php
public function hideColumn($column)
    {
        if (! is_array($column))
            $column = [$column];

        $newColumn = [];
        foreach ($this->column as $item) {
            if (is_array($item)) {
                $new = array_values(array_diff($item, $column));
                if (! empty($new))
                    $newColumn[] = count($new) > 1
                        ? array_values($new)
                        : $new[0];
            }
            else if (! in_array($item, $column))
                $newColumn[] = $item;

        }
        $this->column = $newColumn;

        return $this;
    }
public function hideColumn($column)
    {
        if (! is_array($column))
            $column = [$column];

        $newColumn = [];
        foreach ($this->column as $item) {
            if (is_array($item)) {
                $new = array_values(array_diff($item, $column));
                if (! empty($new))
                    $newColumn[] = count($new) > 1
                        ? array_values($new)
                        : $new[0];
            }
            else if (! in_array($item, $column))
                $newColumn[] = $item;

        }
        $this->column = $newColumn;

        return $this;
    }
public function hideColumn ( $ column ) { if ( ! is_array ( $ column ) ) $ column = [ $ column ] ; $ newColumn = [ ] ; foreach ( $ this -> column as $ item ) { if ( is_array ( $ item ) ) { $ new = array_values ( array_diff ( $ item , $ column ) ) ; if ( ! empty ( $ new ) ) $ newColumn [ ] = count ( $ new ) > 1 ? array_values ( $ new ) : $ new [ 0 ] ; } else if ( ! in_array ( $ item , $ column ) ) $ newColumn [ ] = $ item ; } $ this -> column = $ newColumn ; return $ this ; }
Remove one or more columns attributes

@param  string|array $column

@return self
Remove one or more columns attributes