class Illuminate / Validation / Rules / ProhibitedIf

ProhibitedIf

Properties

public

$condition Closure |bool

The condition that validates the attribute.

Default: null

Methods

public

__construct ( $condition ) : void

Create a new prohibited validation rule based on a condition.

Parameters

public

__toString ( ) : string

Convert the rule to a validation string.