Validates that a value is true
.
Check the IsFalse rule for a false
validation.
IsTrue(
?string $message = null
);
// anything else will be false
Validator::isTrue()->validate(true); // true
type: ?string
default: The {{ name }} value should be true.
Message that will be shown if the value is true.
The following parameters are available:
Parameter | Description |
---|---|
{{ value }} |
The current invalid value |
{{ name }} |
Name of the invalid value |
1.3.0
Created