prohibitedUnless.php
Table of Contents
Functions
- prohibitedUnless() : string
- Generates the 'prohibited_unless:anotherField' rule expression.
Functions
prohibitedUnless()
Generates the 'prohibited_unless:anotherField' rule expression.
prohibitedUnless(string $anotherField, mixed ...$values) : string
The field under this rule is not allowed unless another_field has one of these values. This is the inverse of prohibited_if.
Parameters
- $anotherField : string
-
The another field to evaluates.
- $values : mixed
-
The values of
$anotherFieldthat lift the prohibition.
Return values
string —The compiled prohibited_unless:<field>,<values> rule expression.