tao-test/app/vendor/respect/validation/docs/rules/Equals.md

20 lines
340 B
Markdown
Raw Normal View History

2022-08-29 20:14:13 +02:00
# Equals
- `v::equals(mixed $value)`
Validates if the input is equal to some value.
```php
v::equals('alganet')->validate('alganet'); // true
```
Message template for this validator includes `{{compareTo}}`.
***
See also:
* [Contains](Contains.md)
* [Identical](Identical.md)
* [KeyValue](KeyValue.md)
* [Version](Version.md)