class Illuminate / Validation / Rules / ProhibitedIf
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

ProhibitedIf

Implements

  • Stringable

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.