bootstrap.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. window._ = require('lodash');
  2. /**
  3. * We'll load jQuery and the Bootstrap jQuery plugin which provides support
  4. * for JavaScript based Bootstrap features such as modals and tabs. This
  5. * code may be modified to fit the specific needs of your application.
  6. */
  7. window.$ = window.jQuery = require('jquery');
  8. require('bootstrap-sass');
  9. /**
  10. * We'll load the axios HTTP library which allows us to easily issue requests
  11. * to our Laravel back-end. This library automatically handles sending the
  12. * CSRF token as a header based on the value of the "XSRF" token cookie.
  13. */
  14. window.axios = require('axios');
  15. window.axios.defaults.headers.common['X-CSRF-TOKEN'] = window.Laravel.csrfToken;
  16. window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
  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. // import Echo from 'laravel-echo'
  23. // window.Pusher = require('pusher-js');
  24. // window.Echo = new Echo({
  25. // broadcaster: 'pusher',
  26. // key: 'your-pusher-key'
  27. // });