php - Display error of specific forms -


i have 2 forms on page (a blade template). want display form errors use:

@if (count($errors) > 0)   <div class="alert alert-danger">     <ul>     @foreach ($errors->all() $error)       <li>{{ $error }}</li>     @endforeach     </ul>   </div> @endif 

now have errors on both forms: enter image description here

you can use laravel validation error. throw specific error in specific field. have use in every input control.

@if ($errors->has('input_name'))<p class="text-danger"> {!!$errors->first('input_name')!!}</p>@endif 

Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -