Null Replacer
#55753
Replies: 1 comment 4 replies
-
Hi Sina, thanks for sharing! I left you three PRs—hope that was okay :) |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there!
I'm Sina, a backend developer.
While working on various projects, I often faced the challenge of validating fields that could also be null. To handle this, I had to add extra conditions in controllers, which eventually cluttered the code and took away from Laravel’s elegant structure.
Since I really appreciate Laravel’s clean and expressive coding style, I created a small package called null-replacer to make this process easier and more consistent.
To make it available to this amazing community, I built a GitHub repository for it — feel free to check it out, use it, and even contribute if you'd like.
I truly hope that someday this package becomes part of Laravel itself so everyone can benefit from it.
Beta Was this translation helpful? Give feedback.
All reactions