title: Property not defined error But it is defined Vue js Laravel
body: <p>I have defined the function in my vue js file but it is giving me error for nameWithLang() function Please have a look </p>
  
  <p>My Form </p>
  
  <pre><code>&lt;multiselect v-model="selected" track-by="id" label="name" :options="options" :loading="isLoading" :internal-search="false" @search-change="getData" :multiple="true" :close-on-select="false" :hide-selected="true":internal-search="false" name="books[]" :show-labels="false" :custom-label="nameWithLang"&gt;&lt;/multiselect&gt;
  </code></pre>
  
  <p>My vue js file </p>
  
  <pre><code>import AppForm from '../app-components/Form/AppForm';
  
  Vue.component('coupon-form', {
      mixins: [AppForm],
      data: function() {
          return {
              form: {
                  name:  '' ,
                  description:  '' ,
                  valid_from:  '' ,
                  valid_till:  '' ,
                  discount:  '' ,
                  enabled:  false,
                  books: [],
              },
              isLoading: false,
              options: [],
              selected: [],
  
          }
      },
      methods: {
          nameWithLang({ name, sku }) {
            return `${name} — ${sku}`
          },
          getData(query){
              this.isLoading = true;
  
              axios.post('/admin/books/find/'+query)
              .then((response) =&gt; {
                  this.options = response.data;
                  this.isLoading = false;
              })
              .catch((error) =&gt; {
                  this.isLoading = false;
              });
          },
      },
      watch: {
          selected (newValues) {
               this.form.books = newValues.map(obj =&gt; obj.id)
          }
      }
  });
  </code></pre>
  
  <p>Other properties and functions are working nameWithLang is not working
  It gives me error this </p>
  
  <pre><code>Property or method "nameWithLang" is not defined on the instance but referenced during render.
  </code></pre>