Examples of code I've written in PHP, Javascript, SCSS, etc.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

29 lignes
869 B

  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. // });