class ExcludeUnless implements Stringable

Properties

bool|Closure $condition

The condition that validates the attribute.

Methods

__construct(bool|Closure $condition)

Create a new exclude validation rule based on a condition.

string
__toString()

Convert the rule to a validation string.

Details

at line 20
__construct(bool|Closure $condition)

Create a new exclude validation rule based on a condition.

Parameters

bool|Closure $condition

at line 28
string __toString()

Convert the rule to a validation string.

Return Value

string