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