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); // truetype: ?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.0Created