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