class WhereConstraint extends DatabaseConstraint

Methods

void
apply(Exists|Unique $rule)

Apply the constraint to a database validation rule.

mixed
parseExternalReference(mixed $parameter)

Resolve a possible external reference.

__construct(Closure|string|ExternalReference $column, mixed $value = null)

Create a new where constraint.

Details

at line 26
void apply(Exists|Unique $rule)

Apply the constraint to a database validation rule.

Parameters

Exists|Unique $rule

Return Value

void

in DatabaseConstraint at line 21
protected mixed parseExternalReference(mixed $parameter)

Resolve a possible external reference.

Parameters

mixed $parameter

Return Value

mixed

at line 17
__construct(Closure|string|ExternalReference $column, mixed $value = null)

Create a new where constraint.

Parameters

Closure|string|ExternalReference $column
mixed $value