user data isn't showing form db and not giving any error

Posted 1 week ago by programmer111

hi, m working on Laravel-vue I have inserted data into db through vue component and now wants to show this data into web page(in admin panel) but its not showing, and not giving any error

Users.vue:

  loadUsers(){
             axios.get("api/user").then(({ data }) => (this.users = data.data));
         },

    <tr v-for="user in users" :key="user.id">
                <td>{{user.id}}</td>
                <td>{{user.name}}</td>
   </tr>

complete code is here: https://paste.ofcode.org/UgTyQBC4Ai4RTXtnL3p3ux

how to solve this issue

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.