title: Vue mixins in Laravel Inertia
body: <p>I'm trying to create a global helper function via Vue mixin on a Laravel Inertia project to no avail:</p>
  <pre><code>//app.js
  Vue.mixin({
      methods: {
          myFunction() {
              return 'Returnign from myFunction';
          },
      },
  });
  
  new Vue({
  ...
  }).$mount(app);
  </code></pre>
  <p>.</p>
  <pre><code>//MyComponent.vue
  console.log(myFunction()); // ReferenceError: myFunction is not defined
  </code></pre>
  <p>On a standalone Vue.JS project, this works. Maybe there's something behind the scene in Inertia that prevents the mixin from loading. Can somebody help me understand why this is happening?</p>
  <p>Thank you.</p>