Identical

  • v::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}}.


See also: