title: Laravel 5.4 and Vue 2.0.1 Cannot read property 'get' of undefined
body: <p>I am using Vue Templating with the new Laravel 5.4. In my <strong>Office.vue</strong> I have this code.</p>
  
  <pre><code>&lt;template&gt;
      &lt;div class="container"&gt;
          &lt;div class="row"&gt;
              &lt;div class="col-md-8 col-md-offset-2"&gt;
                  &lt;div class="panel panel-default"&gt;
                      &lt;div class="panel-heading"&gt;Example Component&lt;/div&gt;
  
                      &lt;div class="panel-body"&gt;
                          I'm an example component! {{ message}} | {{ type}} | {{ number }}
                      &lt;/div&gt;
                      &lt;span id="vue"&gt;&lt;/span&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
      export default {
          mounted() {
              return this.displayOffices();
          },
          data: function(){
              return { 
                  message: "aw",
                  type: "test",
                  number: 2 
              }
          },
          methods: {
              displayOffices: function(){
                  this.$http.get('/vueOffice', function(course) {
                      console.log(course);
                  });
              }
          }
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>Displaying the data is good and well work but I got error with </p>
  
  <blockquote>
    <p>Uncaught TypeError: Cannot read property 'get' of undefined</p>
  </blockquote>
  
  <p>which is in <strong>this.$http.get</strong></p>
  
  <p>What I'm trying to accomplish is to get the data from that route which returns JSON data.</p>
  
  <p>I need help fixing this error, been trying to search for an answer but everyone with different ways in implementing Vuejs. </p>