ここの部分。
//resources/assets/js/app.es5.js
window.Vue = require('vue');
/**
* Next, we will create a fresh Vue application instance and attach it to
* the page. Then, you may begin adding components to this application
* or customize the JavaScript scaffolding to fit your unique needs.
*/
Vue.component('example', require('./components/Example.vue'));
const app = new Vue({
el: '#app'
});
こう書くとちょっとスッキリする気がする。
//resources/assets/js/app.es2015.js
import Vue from 'vue'
import App from './components/Example'
new Vue({
el: '#app',
components: {
app: App
}
})