How to use hidden() in a table programmatically
I need to hide a column if another column doesn't have a given value. But this doesn't work on any way.
3 Replies
Try
$record
instead
Actually you can use
disable()
You can't show/hide column by row
->disable(fn($record) => $record->status !== 'approved')
It worked, thanks!