Replies: 1 comment
-
This is no longer required, starting v5 we can use Model Events for the same purpose 🎉 |
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.
-
Here's a wild thought. Currently to add a field that uploads a file we need to:
But... what if we could include Step 2 in Step 1? What if we could add an Upload field like this:
It would then become 2-step:
But what would be even cooler - is if field types would have some default logic. For example, the Upload field could have the above logic the default, since that's what most users do anyway. You could then add the field the exact same way you did before, but just skip the mutator step. Of course, this needs us to convert fields into PHP Classes first.
Thoughts anyone? Worth it or not? Any other places where these callbacks could be useful? I can think of
image
,upload_multiple
, but what other fields? What other use cases would this enable?Beta Was this translation helpful? Give feedback.
All reactions