Skip to content
New issue

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

Mention the ability to pass a second parameter to unique_user_value validation #1118

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion content/collections/docs/validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ This works like the `unique_entry_value` rule, but for taxonomy terms.

This works like the `unique_entry_value` rule, but for users.


:::tip
If you want to override the field that is being validated (e.g. in Livewire Form Objects), you can do so by passing a second parameter to the validation rule, such as `unique_user_value:{id},username`.
:::


[laravel-validation]: https://laravel.com/docs/8.x/validation#available-validation-rules