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