-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
[BUG] Nested after date validation is broken #49955
Comments
We have been having issues with this on 10.43.0 with non-nested fields, too. The below example works in 10.42.0 but not in 10.43.0 'from_date' => [
'nullable',
'date',
'before_or_equal:to_date',
],
'to_date' => [
'required',
'date',
'after_or_equal:from_date',
], |
can you give me the case? |
We also had to revert to 10.42 because of the date validation issues that caused a test to fail in our Bitbucket pipeline.
public function rules()
{
return [
'date_start' => [
'nullable',
'date',
],
'date_end' => [
'nullable',
'date',
'after_or_equal:date_start',
],
];
} And we receive the following error:
|
We've reverted the original PR. |
Laravel Version
10.43.0
PHP Version
8.3.1
Database Driver & Version
No response
Description
This PR broke the nested date after validation which was working fine in 10.42.0.
Steps To Reproduce
The text was updated successfully, but these errors were encountered: