requiredWithoutAll.php
Table of Contents
Functions
- requiredWithoutAll() : string
- Generates the 'required_without_all:field1,field2,...' rule expression.
Functions
requiredWithoutAll()
Generates the 'required_without_all:field1,field2,...' rule expression.
requiredWithoutAll(string ...$fields) : string
The field under validation must be present and not empty only when all the other specified fields are not present.
Parameters
- $fields : string
-
The other fields that must all be absent for this field to be required.
Return values
string —The compiled required_without_all:<fields> rule expression.