Answer the question
In order to leave comments, you need to log in
How to output validation errors to a view in laravel 5.5 + twig?
The essence of the question is that, about registration, it is necessary to make the output of errors under the inputs themselves. At the moment, all errors come out as flash messages at the bottom.
I've tried everything, I've run out of ideas. Well, who knows what and how to do it? I will be very grateful!))
that's how the validation is implemented now.
$rules = [
*правила*
];
$messages = [
*сообщения*
];
$validation = Validator::make($data, $rules, $messages );
if ($validation->fails()) {
throw new ValidationException($validation);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question