We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4b9ab1f + 2d1aee4 commit 8698b8eCopy full SHA for 8698b8e
src/app/Http/Controllers/Operations/ShowOperation.php
@@ -101,8 +101,10 @@ public function show($id)
101
}
102
103
// remove columns that have visibleInShow set as false
104
- if (isset($column['visibleInShow']) && $column['visibleInShow'] == false) {
105
- $this->crud->removeColumn($column['key']);
+ if (isset($column['visibleInShow'])) {
+ if ((is_callable($column['visibleInShow']) && $column['visibleInShow']($this->data['entry']) === false) || $column['visibleInShow'] === false) {
106
+ $this->crud->removeColumn($column['key']);
107
+ }
108
109
110
// remove the character limit on columns that take it into account
0 commit comments