Closed hcweb closed 4 months ago
I'm sorry I missed that. Is this still relevant? I'm happy to help.
The answer should probably be here, anyways: https://respect-validation.readthedocs.io/en/2.3/06-custom-rules/
I will close this issue, but feel free to comment on it anytime! 🐼
This is the custom rule class
This is how I use it
Now, I would like to know how to prompt a custom error message when LxUniqueRule rule validation fails. For example, name already exists, which is a public rule class. Can you help write an implementation method? Thank you very much