bootstrap.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. * Vue is a modern JavaScript library for building interactive web interfaces
  11. * using reactive data binding and reusable components. Vue's API is clean
  12. * and simple, leaving you to focus on building your next great project.
  13. */
  14. window.Vue = require('vue');
  15. /**
  16. * We'll load the axios HTTP library which allows us to easily issue requests
  17. * to our Laravel back-end. This library automatically handles sending the
  18. * CSRF token as a header based on the value of the "XSRF" token cookie.
  19. */
  20. window.axios = require('axios');
  21. window.axios.defaults.headers.common['X-CSRF-TOKEN'] = window.Laravel.csrfToken;
  22. window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
  23. /**
  24. * Echo exposes an expressive API for subscribing to channels and listening
  25. * for events that are broadcast by Laravel. Echo and event broadcasting
  26. * allows your team to easily build robust real-time web applications.
  27. */
  28. // import Echo from 'laravel-echo'
  29. // window.Pusher = require('pusher-js');
  30. // window.Echo = new Echo({
  31. // broadcaster: 'pusher',
  32. // key: 'your-pusher-key'
  33. // });