BoolType()
Validates whether the type of the input is boolean.
v::boolType()->assert(true);
// Validation passes successfully
v::boolType()->assert(false);
// Validation passes successfully| Mode | Template |
|---|---|
default |
{{subject}} must be a boolean |
inverted |
{{subject}} must not be a boolean |
| Placeholder | Description |
|---|---|
subject |
The validated input or the custom validator name (if specified). |
- Booleans
- Types
| Version | Description |
|---|---|
| 1.0.0 | Renamed from Bool to BoolType |
| 0.3.9 | Created as Bool |