|
@@ -11,5 +11,11 @@ let token = document.head.querySelector('meta[name="csrf-token"]');
|
|
if (token) {
|
|
if (token) {
|
|
window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;
|
|
window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;
|
|
} else {
|
|
} else {
|
|
- console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token');
|
|
|
|
|
|
+ console.error('CSRF token not found.');
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+window.App = {};
|
|
|
|
+
|
|
|
|
+window.App.boot = function() {
|
|
|
|
+ new Vue({ el: '#content'});
|
|
|
|
+}
|