window livewire on emit code example
Example: livewire event
inside livewire controller
$this->emit('eventName');
inside livewire blade file
<script type="text/javascript">
window.onload = function() {
Livewire.on('eventName', () => {
// Code Here
})
}
</script>