bootstrap.js 870 B

12345678910111213141516171819202122232425262728
  1. window._ = require('lodash');
  2. /**
  3. * We'll load the axios HTTP library which allows us to easily issue requests
  4. * to our Laravel back-end. This library automatically handles sending the
  5. * CSRF token as a header based on the value of the "XSRF" token cookie.
  6. */
  7. window.axios = require('axios');
  8. window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
  9. /**
  10. * Echo exposes an expressive API for subscribing to channels and listening
  11. * for events that are broadcast by Laravel. Echo and event broadcasting
  12. * allows your team to easily build robust real-time web applications.
  13. */
  14. // import Echo from 'laravel-echo';
  15. // window.Pusher = require('pusher-js');
  16. // window.Echo = new Echo({
  17. // broadcaster: 'pusher',
  18. // key: process.env.MIX_PUSHER_APP_KEY,
  19. // cluster: process.env.MIX_PUSHER_APP_CLUSTER,
  20. // encrypted: true
  21. // });