Browse Source

Merge pull request #3870 from diogoazevedos/arrow-functions

[5.3] Use arrow functions instead of functions
Taylor Otwell 7 years ago
parent
commit
7bb7adef06
2 changed files with 2 additions and 2 deletions
  1. 1 1
      gulpfile.js
  2. 1 1
      resources/assets/js/bootstrap.js

+ 1 - 1
gulpfile.js

@@ -13,7 +13,7 @@ require('laravel-elixir-vue');
  |
  */
 
-elixir(function(mix) {
+elixir(mix => {
     mix.sass('app.scss')
        .webpack('app.js');
 });

+ 1 - 1
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();