| 1 | import Vue from 'vue'; |
||
| 2 | import axios from 'axios'; |
||
| 3 | |||
| 4 | let token = document.head.querySelector('meta[name="csrf-token"]'); |
||
| 5 | |||
| 6 | if (token) { |
||
| 7 | axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content; |
||
| 8 | } |
||
| 9 | |||
| 10 | Vue.component('tinker', require('./components/Tinker.vue')); |
||
| 11 | |||
| 12 | new Vue({ |
||
|
0 ignored issues
–
show
Unused Code
Best Practice
introduced
by
Loading history...
|
|||
| 13 | el: '#web-tinker', |
||
| 14 | }); |
||
| 15 |