bootstrap.js 492 B

123456789101112131415161718
  1. import 'bootstrap';
  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. import axios from 'axios';
  8. window.axios = axios;
  9. window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
  10. import $ from 'jquery';
  11. window.$ = $;
  12. import * as bootstrap from 'bootstrap'
  13. window.bootstrap = bootstrap;