How to apply trim and convert empty string to null globally? #763
Replies: 1 comment
-
I discovered that arrays of "transformers" and "casts" int Super useful! 😇 |
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
-
How can I automatically sanitize strings?
For example:
I've already developed various local casts and transformers. However, I'm uncertain about how to achieve the same globally.
In the
data.php
configuration file, we need to provide an interface for each cast + transformer. Unfortunately, an interface for the string type doesn't exist in this case.Thank you for your help.
Beta Was this translation helpful? Give feedback.
All reactions