Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[11.x] fix the method explodeExplicitRule to support Customizable Date Validation #54353

Merged
merged 3 commits into from
Jan 27, 2025

Conversation

mrvipchien
Copy link
Contributor

The Date Validation returns a string date|date_format:Y-m-d so that when a Form Request using it such as:

return [
    'from' => ['required', Rule::date()->after('today')]
]

we'll get the error: Method Illuminate\Validation\Validator::validateDate|dateFormat does not exist

@mrvipchien mrvipchien closed this Jan 25, 2025
@mrvipchien mrvipchien reopened this Jan 25, 2025
@taylorotwell taylorotwell merged commit b7fca4b into laravel:11.x Jan 27, 2025
38 checks passed
@mrvipchien mrvipchien deleted the fix-customize-date-validation branch January 27, 2025 06:09
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants