File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed
Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 1- //import vue
21import Vue from 'vue' ;
2+ import axios from 'axios' ;
33import _ from 'lodash' ;
44
5- Vue . prototype . _ = _ ;
5+ /**
6+ * We'll load the axios HTTP library which allows us to easily issue requests
7+ * to our Laravel back-end. This library automatically handles sending the
8+ * CSRF token as a header based on the value of the "XSRF" token cookie.
9+ */
10+
11+ window . axios = axios ;
12+
13+ window . axios . defaults . headers . common [ 'X-Requested-With' ] = 'XMLHttpRequest' ;
614
15+
16+ window . Vue = Vue ;
17+ // Do `Vue.prototype._` = _ to use lodash as _ in templates. But I recommend you to define
18+ // your own filters/methods that use lodash methods instead
19+ Vue . prototype . _ = _ ;
720// id app
821Vue . component ( 'front-page' , require ( './components/Front.vue' ) . default ) ;
9-
22+ // Load third party vue component `laravel-vue-pagination`
23+ Vue . component ( 'pagination' , require ( 'laravel-vue-pagination' ) ) ;
1024
1125// load the front component
1226new Vue ( {
You can’t perform that action at this time.
0 commit comments