Answers for "livewire to laravel event"

PHP
2

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>
Posted by: Guest on January-22-2021

Code answers related to "livewire to laravel event"

Browse Popular Code Answers by Language