How can I allowEmpty values for multiple fields in one validator ?
Example:
$validator->add(
[
'fname', 'lname'
],
new Alpha ([
'message' => [
'fname' => 'Invalid first name',
'lname' => 'Invalid last name'
]
]);
How can I allowEmpty values for multiple fields in one validator ?
Example:
$validator->add(
[
'fname', 'lname'
],
new Alpha ([
'message' => [
'fname' => 'Invalid first name',
'lname' => 'Invalid last name'
]
]);