protected function getMessages() { return ['username.regex' => $this->translator->trans('core.api.invalid_username_message')]; }