Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Latest commit

 

History

History
37 lines (24 loc) · 677 Bytes

03-rules_is-false.md

File metadata and controls

37 lines (24 loc) · 677 Bytes

IsFalse

Validates that a value is false.

Check the IsTrue rule for a true validation.

IsFalse(
    ?string $message = null
);

Basic Usage

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

Options

message

type: ?string default: The {{ name }} value should be false.

Message that will be shown if the value is false.

The following parameters are available:

Parameter Description
{{ value }} The current invalid value
{{ name }} Name of the invalid value

Changelog

  • 1.3.0 Created