addeventlistener doesn't work in laravel? code example Example: addeventlistener doesn't work in laravel? window.addEventListener('DOMContentLoaded', (event) => {