From afb3e1c93dc889cf99cb9d6dd4030cfc8b269577 Mon Sep 17 00:00:00 2001 From: Diogo Azevedo Date: Fri, 12 Aug 2016 09:31:18 -0300 Subject: [PATCH] Use arrow functions instead of functions --- gulpfile.js | 2 +- resources/assets/js/bootstrap.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 41a14668..d0fd2440 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -13,7 +13,7 @@ require('laravel-elixir-vue'); | */ -elixir(function(mix) { +elixir(mix => { mix.sass('app.scss') .webpack('app.js'); }); diff --git a/resources/assets/js/bootstrap.js b/resources/assets/js/bootstrap.js index d6bf49ec..968c6363 100644 --- a/resources/assets/js/bootstrap.js +++ b/resources/assets/js/bootstrap.js @@ -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();