You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
869 B

1 month ago
  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. // forceTLS: true
  21. // });