dealhub/resources/js/bootstrap.js
kusowl 976ea01c89 wip: add laravel reverb and echo
fix env
install the dependecies
2026-02-10 19:15:50 +05:30

20 lines
622 B
JavaScript

import axios from 'axios';
import {Chart, registerables} from "chart.js";
Chart.register(...registerables)
window.axios = axios;
window.Chart = Chart;
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
window.axios.defaults.headers.common['Accept'] = 'application/json';
window.axios.defaults.headers.common['Content-Type'] = 'application/json';
/**
* Echo exposes an expressive API for subscribing to channels and listening
* for events that are broadcast by Laravel. Echo and event broadcasting
* allow your team to quickly build robust real-time web applications.
*/
import './echo';