| Total Complexity | 1 |
| Complexity/F | 1 |
| Lines of Code | 31 |
| Function Count | 1 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | |||
| 2 | window._ = require('lodash'); |
||
| 3 | |||
| 4 | /** |
||
| 5 | * We'll load jQuery and the Bootstrap jQuery plugin which provides support |
||
| 6 | * for JavaScript based Bootstrap features such as modals and tabs. This |
||
| 7 | * code may be modified to fit the specific needs of your application. |
||
| 8 | */ |
||
| 9 | |||
| 10 | window.$ = window.jQuery = require('jquery'); |
||
| 11 | require('bootstrap-sass'); |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Vue is a modern JavaScript library for building interactive web interfaces |
||
| 15 | * using reactive data binding and reusable components. Vue's API is clean |
||
| 16 | * and simple, leaving you to focus on building your next great project. |
||
| 17 | */ |
||
| 18 | |||
| 19 | window.Vue = require('vue'); |
||
| 20 | require('vue-resource'); |
||
| 21 | |||
| 22 | /** |
||
| 23 | * We'll register a HTTP interceptor to attach the "CSRF" header to each of |
||
| 24 | * the outgoing requests issued by this application. The CSRF middleware |
||
| 25 | * included with Laravel will automatically verify the header's value. |
||
| 26 | */ |
||
| 27 | |||
| 28 | Vue.http.interceptors.push((request, next) => { |
||
|
|
|||
| 29 | request.headers['X-CSRF-TOKEN'] = Laravel.csrfToken; |
||
| 30 | |||
| 31 | next(); |
||
| 32 | }); |
||
| 33 | |||
| 46 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.