In Laravel Spark, most settings panels have a corresponding Vue JS component, invoked via a custom tab
<spark-create-tests :user="user" inline-template>
<div>
</div>
</spark-create-tests>
I'm creating a new settings panel. I'd like to follow the patterns used by core laravel code -- but I'm unsure how/where to create my vue component. From what I've been able to gather, the public facing web application instantiates its components in this file
#File: public/js/app.js
Vue.component('spark-create-team', {
mixins: [base]
});
This looks like its not human editable -- i.e. it's a file created by some sort of compilation process. I assume that's webpack, but as a frozen caveman developer, I'm not sure.
Which brings me to my questions -- how do I
- Add a new component definition to my laravel spark project
- Recompile my project so that my component is included
Or, alternately, what about the above is incredibly wrongheaded, and I actually need to do this other thing?