livewire wire:model updates all inputs code example
Example 1: 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>
Example 2: updte dom by emitTo livewire
<div>
<div class="">
{{ -- some dom elements -- }}
</div>
<div class="">
{{ -- some other dom elements -- }}
</div>
</div>