Skip to content

[12.x] Add documentation for Laravel’s distinct validation rule with examples #10485

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

Closed
wants to merge 2 commits into from

Conversation

mohammadRezaei1380
Copy link

This pull request introduces a new section to the Laravel validation documentation that explains the distinct validation rule. The distinct rule ensures that all values in an array input are unique, addressing a common validation requirement.

The new section provides a clear explanation along with example code demonstrating how to use the distinct rule with array inputs, helping developers better understand and apply this validation rule effectively.

This addition improves the clarity and completeness of the validation documentation without affecting any existing functionality.

@AhmedAlaa4611
Copy link
Contributor

I think this is documented in https://laravel.com/docs/12.x/validation#rule-distinct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants