Examples of code I've written in PHP, Javascript, SCSS, etc.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 
 

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