mardi 23 juillet 2019

Update user laravel using Vue js?

i used Modal to edit user. i've added the modal and linked a button to each user in the v-for loop. How to pass id from to medal? My table


    
                              
                              
                              
                              
                              
                                     

                              
                              
                                  
                              
                          

Here my fetch method


    updateUser() {
                let $this = this;
                axios.patch('/message/' ,$this.fields).then(function(response) {
                    $this.fields = response.data;
                    $this.getData();
                })

            },

Any help is appreciated!! thanks in advance.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire