src/Traits/Module/HasColumns.php
public function scaffoldViewColumns(Model $model)
    {
        $items = new Mutable();

        $attributes = \admin\helpers\eloquent_attributes($model);

        foreach ($attributes as $key => $value) {
            $items->push($key);
        }

        return $items->build(
            new GridDecorator($model)
        );
    }
public function scaffoldViewColumns(Model $model)
    {
        $items = new Mutable();

        $attributes = \admin\helpers\eloquent_attributes($model);

        foreach ($attributes as $key => $value) {
            $items->push($key);
        }

        return $items->build(
            new GridDecorator($model)
        );
    }
public function scaffoldViewColumns ( Model $ model ) { $ items = new Mutable ( ) ; $ attributes = \ admin \ helpers \ eloquent_attributes ( $ model ) ; foreach ( $ attributes as $ key => $ value ) { $ items -> push ( $ key ) ; } return $ items -> build ( new GridDecorator ( $ model ) ) ; }
Fetch "viewable" columns.

@param Model $model

@return Mutable
Fetch viewable columns .