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.Pusher = require('pusher-js'); |
44
|
|
|
|
45
|
|
|
// window.Echo = new Echo({ |
46
|
|
|
// broadcaster: 'pusher', |
47
|
|
|
// key: 'your-pusher-key' |
48
|
|
|
// }); |
49
|
|
|
|