Make clickAction a computable method instead of just a $clickAction style property #6111
Replies: 1 comment
-
Released with Laravel Nova 5.0.0 Feel free to open up a new issue if you're still experiencing this problem on the latest version. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I tend to set up a Trait that I can add to my Nova Resources with some defaults such as:
And redirectAfterCreate, redirectAfterUpdate etc, which all work fine. But it seems that...
...doesn't work this way, and it's not possible to set the property itself within the trait as this will cause an error and for good reason. Is there any chance we can allow clickAction() to be used as a method instead of the generic property so it can be overriden or computed with a method?
Beta Was this translation helpful? Give feedback.
All reactions