Last change
on this file since dfae77e was dfae77e, checked in by Igor Danilovski <igor_danilovski@…>, 2 years ago |
|
-
Property mode
set to
100644
|
File size:
917 bytes
|
Rev | Line | |
---|
[dfae77e] | 1 | window._ = require('lodash');
|
---|
| 2 |
|
---|
| 3 | try {
|
---|
| 4 | require('bootstrap');
|
---|
| 5 | } catch (e) {}
|
---|
| 6 |
|
---|
| 7 | /**
|
---|
| 8 | * We'll load the axios HTTP library which allows us to easily issue requests
|
---|
| 9 | * to our Laravel back-end. This library automatically handles sending the
|
---|
| 10 | * CSRF token as a header based on the value of the "XSRF" token cookie.
|
---|
| 11 | */
|
---|
| 12 |
|
---|
| 13 | window.axios = require('axios');
|
---|
| 14 |
|
---|
| 15 | window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
---|
| 16 |
|
---|
| 17 | /**
|
---|
| 18 | * Echo exposes an expressive API for subscribing to channels and listening
|
---|
| 19 | * for events that are broadcast by Laravel. Echo and event broadcasting
|
---|
| 20 | * allows your team to easily build robust real-time web applications.
|
---|
| 21 | */
|
---|
| 22 |
|
---|
| 23 | // import Echo from 'laravel-echo';
|
---|
| 24 |
|
---|
| 25 | // window.Pusher = require('pusher-js');
|
---|
| 26 |
|
---|
| 27 | // window.Echo = new Echo({
|
---|
| 28 | // broadcaster: 'pusher',
|
---|
| 29 | // key: process.env.MIX_PUSHER_APP_KEY,
|
---|
| 30 | // cluster: process.env.MIX_PUSHER_APP_CLUSTER,
|
---|
| 31 | // forceTLS: true
|
---|
| 32 | // });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.