title: Uncaught (in promise) TypeError: Cannot read property 'data' of undefined
body: <p>I have this problem with VueJS Laravel</p>
  
  <p>This is my Home.vue</p>
  
  <pre><code>&lt;template&gt;
      &lt;table&gt;
          &lt;tr v-for="models in model.data"&gt;
              {{models.nom}}
          &lt;/tr&gt;
      &lt;/table&gt;
  &lt;/template&gt;
  &lt;script&gt;
  import axios from 'axios'
  export default{
      data() {
          return {
              model: {}
          }
      },
      created:function(){
          this.fetchDataResto()
      },
      methods: {
          fetchDataResto(){
              var vm = this
              axios.get('/test')
                  .then(function response(){
                      Vue.set(vm.$data, 'model', response.model.data)
                  })
          }
      }
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>And this is my app.js</p>
  
  <pre><code>require("./bootstrap");
  window.Vue = require("vue");
  Vue.component('home', require('./components/Home.vue'));
  
  var app = new Vue({
    el: "#app"
  });
  </code></pre>
  
  <p>I have this message error after execute <code>Uncaught (in promise) TypeError: Cannot read property 'data' of undefined at response (app.js:47293)</code></p>
  
  <p>I don't know why data is undefined</p>
  
  <p>Thanks</p>