Closed asadullah097 closed 4 years ago
HOW DID YOU RESOLVED THIS ????????????????????????????????????????
use the below script in your master blade
use these on the view/js/bootsrap.js window.axios = require('axios');
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
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'); }
Yeah Yeah Yeah i got that all by myself , but thax alot for posting this in here, this will defiantly going to help someone else.
I am using laravel 7 with vuejs it give me the error auth is not defined