How do I add form validation for complex constraints? #15935
the4amfriend
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently we're faced with ugly DB errors when complex constraints are hit, we'd like to rectify that but I'm not sure how best I can address this.
For example, how do we validate the following in a form?
$table->unique(['name', 'country_id', 'jurisdiction_level_id']);
Here's my form:
Appreciate any advice.
Beta Was this translation helpful? Give feedback.
All reactions