We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In this case:
{ "en":"unique_title", //scoped for en "lt":"unique_title", //scoped for lt }
<input name="title_en" value="unique_title" /> <input name="title_lt" value="some other title"/>
I want to have different validation for each input like:
$attributes = request()->validate([ 'title_lt' => 'required|unique_translation:posts:title', 'title_en' => 'unique_translation:posts:title', ]);
how would i check against a specific value? Or this will just work?
The text was updated successfully, but these errors were encountered:
Hello,
This should work:
<input name="title[en]" value="unique_title" /> <input name="title[lt]" value="some other title"/>
$attributes = request()->validate([ 'title.lt' => 'required|unique_translation:posts:title', 'title.en' => 'unique_translation:posts:title', ]);
Sorry, something went wrong.
yup all works fine! amazing package thank you!
No branches or pull requests
In this case:
I want to have different validation for each input like:
how would i check against a specific value? Or this will just work?
The text was updated successfully, but these errors were encountered: