use $record in badgeColumn visibility

Hi all ! It's not possible to do this in a table ? I've got an error that $record is null : Tables\Columns\BadgeColumn::make('status.human_name') ->label(__('Status')) ->visible(fn ($record) => $record->is_internal), Thx
2 Replies
awcodes
awcodes2y ago
You can’t have dynamically hidden and visible columns. Tables don’t work that way.
Gustave
GustaveOP2y ago
Ok ! Finally, it seems quite logical to me. It's the weekend so I'm a little tired 😴 Thanks a lot
Want results from more Discord servers?
Add your server