I
I
Ivan2018-11-14 02:25:49
Laravel
Ivan, 2018-11-14 02:25:49

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

2 answer(s)
A
Alexey Ukolov, 2018-11-14
@alexey-m-ukolov

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 question

Ask a Question

731 491 924 answers to any question