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.
1 parent 6628468 commit 21a9dc4Copy full SHA for 21a9dc4
src/app/Http/Controllers/Operations/ShowOperation.php
@@ -102,8 +102,10 @@ public function show($id)
102
}
103
104
// remove columns that have visibleInShow set as false
105
- if (isset($column['visibleInShow']) && $column['visibleInShow'] == false) {
106
- $this->crud->removeColumn($column['key']);
+ if (isset($column['visibleInShow'])) {
+ if ((is_callable($column['visibleInShow']) && $column['visibleInShow']($this->data['entry']) === false) || $column['visibleInShow'] == false) {
107
+ $this->crud->removeColumn($column['key']);
108
+ }
109
110
111
// remove the character limit on columns that take it into account
0 commit comments