Skip to content

[12.x] Add explanation and example for nullable validat… #10445

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

Open
wants to merge 3 commits into
base: 12.x
Choose a base branch
from

Conversation

mohammadRezaei1380
Copy link

This pull request adds a clear explanation and a practical example for the nullable validation rule in the validation.md documentation for Laravel 12.
It helps developers understand how nullable works and when other validation rules are skipped if the field is null.

@mohammadRezaei1380 mohammadRezaei1380 changed the title feat(validation.md): Add explanation and example for nullable validat… [12.x] Add explanation and example for nullable validat… May 25, 2025
@AhmedAlaa4611
Copy link
Contributor

It is already documented, and we mentioned it several many times across the docs.

@AhmedAlaa4611
Copy link
Contributor

… adds a clear explanation and usage example for the `prohibited_if` validation rule in Laravel 12's validation documentation. This helps developers better understand how to dynamically exclude fields from requests based on the value of another field.
… This PR adds a clear explanation and usage example for the `prohibited_if` validation rule in Laravel 12's validation documentation. This helps developers better understand how to dynamically exclude fields from requests based on the value of another field."

This reverts commit 8d5a8c8.
@mohammadRezaei1380
Copy link
Author

Thanks for the note! I understand that nullable is mentioned in various places throughout the docs.
My goal was to provide a concise and clear explanation with a simple example all in one place for easier reference—especially helpful for new users who might miss scattered mentions.

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.

2 participants