respect-validation/docs/rules/Identical.md
Henrique Moody 10df3211f5
Add "Categorization" section to rule documentations
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-05-11 19:16:21 +02:00

457 B

Identical

  • Identical(mixed $value)

Validates if the input is identical to some value.

v::identical(42)->validate(42); // true
v::identical(42)->validate('42'); // false

Message template for this validator includes {{compareTo}}.

Categorization

  • Comparisons

Changelog

Version Description
1.0.0 Created

See also: