hide a column in table builder
I have a relation manager,
In relation manager I wanted to hide a column in table builder.
I try this
Tables\Columns\IconColumn::make('saml')
->boolean()
->trueIcon('heroicon-o-badge-check')
->falseIcon('heroicon-o-x-circle')
->hidden(fn($record) => dd($record->saml == 1)),
But it’s giving me an error
Attempt to read property "saml" on null
3 Replies