schema([ $this->getNameFormComponent(), $this->getEmailFormComponent(), TextInput::make('username') ->required() ->unique(ignoreRecord: true) ->maxLength(255), Select::make('preferred_locale') ->options([ 'de' => 'Deutsch', 'en' => 'English', ]) ->default('de') ->required(), $this->getPasswordFormComponent(), $this->getPasswordConfirmationFormComponent(), $this->getCurrentPasswordFormComponent(), ]); } }