@@ -96,9 +96,9 @@ protected function prepareAction(RowAction $action)
9696    public  function  disableView (bool  $ disabletrue )
9797    {
9898        if  ($ disable
99-             array_delete ($ this default , Show::class);
100-         } elseif  (!in_array (Show::class, $ this default )) {
101-             array_push ($ this default , Show::class);
99+             array_delete ($ this defaultClass , Show::class);
100+         } elseif  (!in_array (Show::class, $ this defaultClass )) {
101+             array_push ($ this defaultClass , Show::class);
102102        }
103103
104104        return  $ this 
@@ -114,9 +114,9 @@ public function disableView(bool $disable = true)
114114    public  function  disableDelete (bool  $ disabletrue )
115115    {
116116        if  ($ disable
117-             array_delete ($ this default , Delete::class);
118-         } elseif  (!in_array (Delete::class, $ this default )) {
119-             array_push ($ this default , Delete::class);
117+             array_delete ($ this defaultClass , Delete::class);
118+         } elseif  (!in_array (Delete::class, $ this defaultClass )) {
119+             array_push ($ this defaultClass , Delete::class);
120120        }
121121
122122        return  $ this 
@@ -132,9 +132,9 @@ public function disableDelete(bool $disable = true)
132132    public  function  disableEdit (bool  $ disabletrue )
133133    {
134134        if  ($ disable
135-             array_delete ($ this default , Edit::class);
136-         } elseif  (!in_array (Edit::class, $ this default )) {
137-             array_push ($ this default , Edit::class);
135+             array_delete ($ this defaultClass , Edit::class);
136+         } elseif  (!in_array (Edit::class, $ this defaultClass )) {
137+             array_push ($ this defaultClass , Edit::class);
138138        }
139139
140140        return  $ this 
0 commit comments