[ 'required', ], ]; if ($this->route()?->parameter('settingName') == 'restrictList') { $rule['value'][] = new IsValidEmailList; } return $rule; } }