Merge pull request #4068 from yuters/patch-1

Make axios compatible with Request::ajax()
This commit is contained in:
Taylor Otwell
2016-12-08 14:13:14 -06:00
committed by GitHub

View File

@@ -25,6 +25,7 @@ window.Vue = require('vue');
*/
window.axios = require('axios');
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
/**
* Echo exposes an expressive API for subscribing to channels and listening