Update app.js

This commit is contained in:
Daniel Supernault 2019-08-01 22:39:50 -06:00
parent bd7cad9984
commit 5a1aba18bc
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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'});
} }