class Illuminate / Validation / Rule
You are viewing an older version of the documentation. For the latest, please visit master documentation.

Rule

Uses

Methods

public static

when ( $condition , $rules , $defaultRules ) : ConditionalRules

Create a new conditional rule set.

Parameters

  • $condition callable|bool
  • $rules array|string
  • $defaultRules array|string
public static

dimensions ( array $constraints ) : Dimensions

Get a dimensions constraint builder instance.

Parameters

  • $constraints array
public static

exists ( $table , $column ) : Exists

Get an exists constraint builder instance.

Parameters

  • $table string
  • $column string
public static

in ( $values ) : In

Get an in constraint builder instance.

Parameters

public static

notIn ( $values ) : NotIn

Get a not_in constraint builder instance.

Parameters

public static

requiredIf ( $callback ) : RequiredIf

Get a required_if constraint builder instance.

Parameters

  • $callback callable|bool
public static

unique ( $table , $column ) : Unique

Get a unique constraint builder instance.

Parameters

  • $table string
  • $column string