requiredWithAll.php
Table of Contents
Functions
- requiredWithAll() : string
- The field under validation must be present and not empty only if all the other specified fields are present.
Functions
requiredWithAll()
The field under validation must be present and not empty only if all the other specified fields are present.
requiredWithAll(string ...$fields) : string
Parameters
- $fields : string
-
The other fields that must all be present for this field to be required.
Return values
string —The compiled required_with_all:<fields> rule expression.