1
0
Fork 0

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
1 changed files with 7 additions and 1 deletions

View File

@ -11,5 +11,11 @@ let token = document.head.querySelector('meta[name="csrf-token"]');
if (token) {
window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;
} 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'});
}