Skip to content

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

Merged
taylorotwell merged 3 commits into
laravel:11.xfrom
mrvipchien:fix-customize-date-validation
Jan 27, 2025
Merged

[11.x] fix the method explodeExplicitRule to support Customizable Date Validation#54353
taylorotwell merged 3 commits into
laravel:11.xfrom
mrvipchien:fix-customize-date-validation

Conversation

@mrvipchien
Copy link
Copy Markdown
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
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