S
S
suhuxa12017-08-03 13:13:15
Laravel
suhuxa1, 2017-08-03 13:13:15

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

1 answer(s)
A
Alexander Aksentiev, 2017-08-03
@Sanasol

<div class="alert alert-danger" ng-if="errors" ng-repeat="error in errors">
    <p ng-repeat="err in error">{{err}}</p>
</div>

Well, sort of like that, but how else?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question