Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 676 Bytes

03-rules_is-null.md

File metadata and controls

37 lines (24 loc) · 676 Bytes

IsNull

Validates that a value is null.

Check the NotNull rule for the opposite validation.

IsNull(
    ?string $message = null
);

Basic Usage

// anything else will be false
Validator::isNull()->validate(null); // true

Options

message

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

Changelog

  • 1.3.0 Created