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