dcasia/column-toggler

Computed field

Keko-94 opened this issue · 2 comments

Hello

It doesn't work with computed fields.

Text::make(__('Enterprise'), function () {
    return $this->training->enterprise->name;
})

Thanks for this package !

It is because computed fields have no attribute! perhaps you can use ->displayUsing() instead

I figured out a way to make it work, released here: v0.1.1