diff --git a/resources/js/components/FormField.vue b/resources/js/components/FormField.vue index 67ec3edd..5826e29e 100644 --- a/resources/js/components/FormField.vue +++ b/resources/js/components/FormField.vue @@ -11,6 +11,7 @@ :placeholder="placeholder" v-bind="$attrs" v-on:change="$emit('field-changed', form[fieldName])" + :maxlength="this.maxLength" /> @@ -69,6 +70,11 @@ isDisabled: { type: Boolean, default: false + }, + + maxLength: { + type: Number, + default: null } } } diff --git a/resources/js/views/auth/Register.vue b/resources/js/views/auth/Register.vue index 6892e35f..940421eb 100644 --- a/resources/js/views/auth/Register.vue +++ b/resources/js/views/auth/Register.vue @@ -23,8 +23,8 @@
- - + + diff --git a/resources/js/views/settings/Account.vue b/resources/js/views/settings/Account.vue index 17219dc5..1bda39e5 100644 --- a/resources/js/views/settings/Account.vue +++ b/resources/js/views/settings/Account.vue @@ -7,8 +7,8 @@

{{ $t('settings.profile') }}

- - + +