Closed Superpat closed 2 weeks ago
Hi there,
Thanks for reporting the problem you are encountering, but it looks like this is a question which may be better suited for a support channel. We only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repository you can try one of the following channels:
However, this issue will not be locked and everyone is still free to discuss solutions to your problem!
Thanks.
Laravel Version
11.8
PHP Version
8.3
Database Driver & Version
No response
Description
The following validation does not work:
date_format:m/y|after:today
butdate_format:m/y|after:12/25
does work.If I pass
12/22
to the first one it's marked as being a valid date, but it should not. The non relative date correctly detects it as non valid.Steps To Reproduce
A controller, action and request are all required before a test can be written. Though more advanced php dev's might be able to write a unit test for this that only uses a request class or the validation string. Here's a more or less complete example.