Guest User

Untitled

a guest
Jul 13th, 2017
516
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. window._ = require('lodash');
  3.  
  4. /**
  5.  * We'll load jQuery and the Bootstrap jQuery plugin which provides support
  6.  * for JavaScript based Bootstrap features such as modals and tabs. This
  7.  * code may be modified to fit the specific needs of your application.
  8.  */
  9.  
  10. try {
  11.     window.$ = window.jQuery = require('jquery');
  12.  
  13.     require('bootstrap-sass');
  14. } catch (e) {}
  15.  
  16. /**
  17.  * We'll load the axios HTTP library which allows us to easily issue requests
  18.  * to our Laravel back-end. This library automatically handles sending the
  19.  * CSRF token as a header based on the value of the "XSRF" token cookie.
  20.  */
  21.  
  22. window.axios = require('axios');
  23.  
  24. window.axios.defaults.headers.common['X-CSRF-TOKEN'] = window.Laravel.csrfToken;
  25. window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
  26.  
  27. /**
  28.  * Echo exposes an expressive API for subscribing to channels and listening
  29.  * for events that are broadcast by Laravel. Echo and event broadcasting
  30.  * allows your team to easily build robust real-time web applications.
  31.  */
  32.  
  33. // import Echo from 'laravel-echo'
  34.  
  35. // window.Pusher = require('pusher-js');
  36.  
  37. // window.Echo = new Echo({
  38. //     broadcaster: 'pusher',
  39. //     key: 'your-pusher-key'
  40. // });
Advertisement
Add Comment
Please, Sign In to add comment