class ExcludeIf implements Stringable (View source)

Properties

Closure|bool $condition

The condition that validates the attribute.

Methods

void
__construct(Closure|bool $condition)

Create a new exclude validation rule based on a condition.

string
__toString()

Convert the rule to a validation string.

Details

void __construct(Closure|bool $condition)

Create a new exclude validation rule based on a condition.

Parameters

Closure|bool $condition

Return Value

void

Exceptions

InvalidArgumentException

string __toString()

Convert the rule to a validation string.

Return Value

string