F
Filament5mo ago
Glebka

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!
No description
Solution:
This is a Table Column? You can't hide columns based on the record because that would break the table layout
Jump to solution
2 Replies
Solution
Dennis Koch
Dennis Koch5mo ago
This is a Table Column? You can't hide columns based on the record because that would break the table layout
Glebka
GlebkaOP5mo ago
Yes, this is a table column. In a visible method want to loop through relations in a different table and only display relation if at least 1 relation marches the search. To accomplish that I need to access the state or a record, but these values are null.

Did you find this page helpful?