respect-validation/library
Henrique Moody 71ecea32e6
Make getMessages() return the names or ids as keys
This method change the behavior of "getMessages()" by changin the keys
of its return to the "id" of the specific exception that was triggered.

It also allows users to overwrite the templates by passing an array to
it.

This is being requested by many users for a long time. It took that long
because I was thinking too much about how to improve the old method
called "findMesssage()" that I didn't realize that it could be done in a
easier way with the "getMessages()".

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2018-05-28 08:38:30 +02:00
..
Exceptions Make getMessages() return the names or ids as keys 2018-05-28 08:38:30 +02:00
Helpers Refactor "Between" rule 2018-03-03 18:06:26 +01:00
Rules Refactor ValidationException 2018-05-27 16:12:05 +02:00
Factory.php Refactor ValidationException 2018-05-27 16:12:05 +02:00
Validatable.php Ensure names are always string 2018-05-27 16:12:05 +02:00
Validator.php Refactor ValidationException 2018-05-27 16:12:05 +02:00