Answer the question
In order to leave comments, you need to log in
How to output errors in laravel after form validation?
I print the $errors array, I see that the errors are enclosed in an array corresponding to the name field in which the error is. And I would like to display all the errors at once above the form. How to proceed in this case? There are about 15 fields, respectively, and there can be 15 arrays with errors
Answer the question
In order to leave comments, you need to log in
<div class="alert alert-danger" ng-if="errors" ng-repeat="error in errors">
<p ng-repeat="err in error">{{err}}</p>
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question