Skip to content

Conversation

@nshiro
Copy link
Contributor

@nshiro nshiro commented Aug 30, 2022

From Laravel 9.2 we have a simple way to specify a custom message when validating with a rule object. #41145
But it doesn't seem to work with invokable rules.
This PR makes invokable rules to work with #41145.

@driesvints driesvints requested a review from timacdonald August 30, 2022 07:15
Copy link
Member

@timacdonald timacdonald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a clean fix. Tested locally and confirmed.

Thanks @nshiro for the PR ❤️

@nshiro
Copy link
Contributor Author

nshiro commented Aug 31, 2022

Thank you for reviewing my code.😀 @timacdonald

@taylorotwell taylorotwell merged commit 3f1b0a2 into laravel:9.x Aug 31, 2022
@nshiro nshiro deleted the invokable_rules_custom_messages branch August 31, 2022 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants