Use arrow functions instead of functions
This commit is contained in:
2
resources/assets/js/bootstrap.js
vendored
2
resources/assets/js/bootstrap.js
vendored
@@ -25,7 +25,7 @@ require('vue-resource');
|
||||
* included with Laravel will automatically verify the header's value.
|
||||
*/
|
||||
|
||||
Vue.http.interceptors.push(function (request, next) {
|
||||
Vue.http.interceptors.push((request, next) => {
|
||||
request.headers['X-CSRF-TOKEN'] = Laravel.csrfToken;
|
||||
|
||||
next();
|
||||
|
||||
Reference in New Issue
Block a user