resources/assets/js/bootstrap.js   A
last analyzed

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 32
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 0
dl 0
loc 32
rs 10
c 0
b 0
f 0
cc 0
nc 1
mnd 0
bc 0
fnc 0
bpm 0
cpm 0
noi 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
12
require('bootstrap-sass');
13
14
/**
15
 * Vue is a modern JavaScript library for building interactive web interfaces
16
 * using reactive data binding and reusable components. Vue's API is clean
17
 * and simple, leaving you to focus on building your next great project.
18
 */
19
20
window.Vue = require('vue');
21
22
/**
23
 * We'll load the axios HTTP library which allows us to easily issue requests
24
 * to our Laravel back-end. This library automatically handles sending the
25
 * CSRF token as a header based on the value of the "XSRF" token cookie.
26
 */
27
28
window.axios = require('axios');
29
30
window.axios.defaults.headers.common = {
31
    'X-CSRF-TOKEN': window.Laravel.csrfToken,
32
    'X-Requested-With': 'XMLHttpRequest'
33
};
34
35
/**
36
 * Echo exposes an expressive API for subscribing to channels and listening
37
 * for events that are broadcast by Laravel. Echo and event broadcasting
38
 * allows your team to easily build robust real-time web applications.
39
 */
40
41
// import Echo from "laravel-echo"
42
43
// window.Echo = new Echo({
44
//     broadcaster: 'pusher',
45
//     key: 'your-pusher-key'
46
// });
47