Skip to content

Instantly share code, notes, and snippets.

@jongravois
Created October 14, 2020 13:38
Show Gist options
  • Save jongravois/493e4b322b52908d181a12baa59d4b72 to your computer and use it in GitHub Desktop.
Save jongravois/493e4b322b52908d181a12baa59d4b72 to your computer and use it in GitHub Desktop.
window._ = require('lodash');
window.axios = require('axios');
import MomentBusinessDays from 'moment-business-days';
import MomentTimeZone from 'moment-timezone';
window.alpine = require('alpinejs');
window.moment = MomentBusinessDays;
window.moment_timezone = MomentTimeZone;
window.Pikaday = require('pikaday');
window.trix = require('trix');
window.sortable = require('livewire-sortable');
window.wenk = require('wenk');
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
/**
* Echo exposes an expressive API for subscribing to channels and listening
* for events that are broadcast by Laravel. Echo and event broadcasting
* allows your team to easily build robust real-time web applications.
*/
// import Echo from 'laravel-echo';
// window.Pusher = require('pusher-js');
// window.Echo = new Echo({
// broadcaster: 'pusher',
// key: process.env.MIX_PUSHER_APP_KEY,
// cluster: process.env.MIX_PUSHER_APP_CLUSTER,
// forceTLS: true
// });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment