[Vuejs]-How can I show the validation messages in vform?

0👍

you should catch errors like this:

.catch(error => {
                this.errors = error.response.data.errors;
                // console.log(this.errors);
            })

and also

data(){
errors: {}
 }

And the error in network was sent by laravel. It is not there cause you log this

.catch(err => console.log(err))

To show the error of description below text area :

  <span
                    v-if="errors['description']"
                    role="alert"
                >{{ errors["description"]}}
               </span>

Leave a comment