class Illuminate / Validation / Rules / ExcludeIf

ExcludeIf

Properties

public

$condition Closure |bool

The condition that validates the attribute.

Default: null

Methods

public

__construct ( $condition ) : void

Create a new exclude validation rule based on a condition.

Parameters

public

__toString ( ) : string

Convert the rule to a validation string.