Simple static methods for request validation #50222
Unanswered
dougkusanagi
asked this question in
Ideas
Replies: 1 comment 2 replies
-
instead of making something new, extend something old: \Illuminate\Validation\Rule... But i don't know, I like the string based rules. Especially when they have no purpose of being an object. |
Beta Was this translation helpful? Give feedback.
2 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello pals, I was thinking it would interesting have a class with all common validation rules to get auto-completions in request validations. I know Spatie has a package for validations, but i had some simpler idea in my mind, i don't know if would be helpfull or if Laravel already has it, so i'm posting here.
This is some snippet of what i would like to be able to do:
Beta Was this translation helpful? Give feedback.
All reactions