When using the following Syntax for the rules, Validation::fillPlaceholders() cant find the rules and fails to replace any placeholders
$rules = [
'email' => [
'rules' => ['required', 'trim', 'valid_email', 'max_length[191]', 'is_unique[users.email, id, {id}]'],
]
]
Validation::run() handles this for the validation itself:
|
// Blast $rSetup apart, unless it's already an array. |
|
$rules = $rSetup['rules'] ?? $rSetup; |
PR Incomming