Replies: 1 comment
-
Just create a custom rule, and implement that? https://laravel.com/docs/11.x/validation#custom-validation-rules |
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
-
We're working on a project that already uses Laravel default email validation in many places.
Now we need to extend it and the only simple solution we came up with is to override the validator with a custom one.
AppServiceProvider:
We are confused that this is a 3rd party dependency that Laravel uses and it can be broken after updates.
How safe is it and are there other ways to extend email validation without changing the 'email' rule in requests?
Beta Was this translation helpful? Give feedback.
All reactions