|
@@ -27,10 +27,8 @@ window.Vue = require('vue');
|
|
|
|
|
|
window.axios = require('axios');
|
|
|
|
|
|
-window.axios.defaults.headers.common = {
|
|
|
- 'X-CSRF-TOKEN': window.Laravel.csrfToken,
|
|
|
- 'X-Requested-With': 'XMLHttpRequest'
|
|
|
-};
|
|
|
+window.axios.defaults.headers.common['X-CSRF-TOKEN'] = window.Laravel.csrfToken;
|
|
|
+window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
|
|
|
|
|
/**
|
|
|
* Echo exposes an expressive API for subscribing to channels and listening
|