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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community