$record is null inside hidden()
Is this expected behavior? Or I am doing something wrong?
2 Replies
It’s expected because there is no sense on hiding columns based on the record. That would break the table layout
I had this question too. I wanted to only show the deleted_at column only on trashed records. I now fixed it by getting the active filters in the ->visible or ->hidden methods