bootstrap.js 917 B

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