Commit afb3e1c9 authored by Diogo Azevedo's avatar Diogo Azevedo

Use arrow functions instead of functions

parent 788a6481
...@@ -13,7 +13,7 @@ require('laravel-elixir-vue'); ...@@ -13,7 +13,7 @@ require('laravel-elixir-vue');
| |
*/ */
elixir(function(mix) { elixir(mix => {
mix.sass('app.scss') mix.sass('app.scss')
.webpack('app.js'); .webpack('app.js');
}); });
...@@ -25,7 +25,7 @@ require('vue-resource'); ...@@ -25,7 +25,7 @@ require('vue-resource');
* included with Laravel will automatically verify the header's value. * 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; request.headers['X-CSRF-TOKEN'] = Laravel.csrfToken;
next(); next();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment