Answer the question
In order to leave comments, you need to log in
How to display 2 different errors for the 1st field and for the same rule in laravel validator?
There is an email field during registration and authorization, but for registration by the required
rule, I want to display the E-mail field is required during registration , and during authorization, the E-mail field is required during authorization
, all this must be taken from the validation file
As for two different cases with the same name fields to take different messages?
Answer the question
In order to leave comments, you need to log in
No way, you need to either hack in the template, or pass the desired text manually to the validator.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question