Oihana PHP

requiredWithout.php

Table of Contents

Functions

requiredWithout()  : string
Generates the 'required_without:field1,field2,...' rule expression.

Functions

requiredWithout()

Generates the 'required_without:field1,field2,...' rule expression.

requiredWithout(string ...$fields) : string

The field under validation must be present and not empty only when any of the other specified fields are not present.

Parameters
$fields : string

The other fields whose absence makes this field required.

Return values
string

The compiled required_without:<fields> rule expression.

On this page

Search results