When working with Laravel Spark, you'll find that most settings panels come with a corresponding Vue JS component that is called upon using a custom tab.
<spark-create-tests :user="user" inline-template>
<div>
</div>
</spark-create-tests>
Now, if I'm looking to create my own settings panel following the same patterns as the core Laravel code, I may be a bit lost on where and how to begin creating my Vue component. Based on my research, it seems that the web application's components are instantiated in the following file:
#File: public/js/app.js
Vue.component('spark-create-team', {
mixins: [base]
});
This file appears to be auto-generated by some compilation process like webpack. However, being somewhat inexperienced in this area, I could be mistaken.
So, my main concerns are:
- How do I incorporate a new component definition into my Laravel Spark project?
- What steps should I take to recompile the project and have my component included?
Alternatively, is there a different approach I should consider rather than what I outlined above?