How to access $record in a ->visible() method?
I am 100% sure that record is not null. but when i dd it, its shows that record is null, how to get $record or a $state in a ->visible() method? Thanks!

Solution
This is a Table Column? You can't hide columns based on the record because that would break the table layout