Oihana PHP System

requiredUnless.php

Table of Contents

Functions

requiredUnless()  : string
Generates the 'required_unless:anotherField,value1,value2,...' rule expression.

Functions

requiredUnless()

Generates the 'required_unless:anotherField,value1,value2,...' rule expression.

requiredUnless(string $anotherField, mixed ...$values) : string

The field under validation must be present and not empty unless the another_field field is equal to any value.

Parameters
$anotherField : string

The another field to evaluates.

$values : mixed
Return values
string

        
On this page

Search results