Support the ongoing development of Laravel.io →
Requests Input Validation
Last updated 2 years ago.
0

The thing I need to make at the end - to display errors of custom validator near the custom fields in the form.

{{ $errors->getBag('default')->first('title') }}
{{ $errors->getBag('default')->first('body') }}
{{ $errors->getBag('custom_validator')->first('one') }}
{{ $errors->getBag('custom_validator')->first('two') }}

I found a similar question: Custom Validator for form array fields

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

ell ell Joined 3 Aug 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.