2FAuth/resources/js/components/FieldError.vue
2022-08-03 10:53:07 +02:00

21 lines
435 B
Vue

<template>
<p :id="'valError' + field[0].toUpperCase() + field.toLowerCase().slice(1)" class="help is-danger" v-if="form.errors.has(field)" v-html="form.errors.get(field)" />
</template>
<script>
export default {
name: 'field-error',
props: {
form: {
type: Object,
required: true
},
field: {
type: String,
required: true
}
}
}
</script>