ArrayItem
which can validate an array's items and make sure all the items pass validation against a specific constraints schema.DateEquals
which can help you validate that a target value is a date and is the same date as the validation date or other fieldAfter
which can help you validate that a target value is a date and is after the validation dateAfterOrEqual
which can help you validate that a target value is a date and is after or equal the validation dateBefore
which can help you validate that a target value is a date and is before the validation dateBeforeOrEqual
which can help you validate that a target value is a date and is before or equal the validation dateonError( closure ), onSuccess( closure )
callbacks that can be used to validate results using the validate()
method and concatenate the callbacks.assert()
helper that can assit you in validating truthful expressions or throwing exceptionsvalidateIsNullorEmpty()
and validateHasValue()
so you can do simple validations not only on objects and constraints.RequiredIf, RequiredUnless
can now be declared with a simple value pointing to a field. Basically testing if anotherField
exists, or unless anotherField
exists.BaseValidator
for usage by all validators to bring uniformity, global di, and helpers.IValidator
removes the getName()
since that comes from the BaseValidator
now.UniqueValidator
now supports both creation and update checks with new constraints.interfaces
folder so we can continue to document them and use them without direct compilation.rules
struct argument to several validators that missed it.