-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
docs: add warning to validate() in controller #8169
docs: add warning to validate() in controller #8169
Conversation
78af796
to
d1f3f72
Compare
``validateData()``. | ||
|
||
The method accepts an array of data to validate in the first parameter, and an | ||
array of rules in the second parameter, and in the optional third parameter, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Method validateData()
has 4 parameters, my understanding of this text is that it has 3 parameters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are correct!
I added.
d1f3f72
to
04505c7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Description
Supersedes #8157
validate()
has many pitfalls and is not recommended.Checklist: