How does bagisto implement Vee-Validate
-
Hi fam! I want to change the validation error message, I can't figure out how they implement it. this is what I mean
-
Hi @Uyo-obong,
We are using the
vee-validate
package. If you want to remove that field you need to check this documentation,https://vee-validate.logaretm.com/v2/guide/messages.html#field-specific-custom-messages
I am giving you sample, this will help you, just go to the specific blade file where you want to change add this,
const dict = { custom: { code: { required: 'Something is required.' } } };
After that, inside component's create or mount method add this,
this.$validator.localize('en', dict);