Fix : wire:click not working in Laravel Livewire

So, if you are working with Laravel Livewire and you have wire:click in your template which should call a function in the component. But it is not working, and you have tried everything.

Here is what you might be missing

Your livewire template code should be wrapped inside a single parent div


<div>
    <!-- Livewire Component Template-->
</div>

If you are looking for Reusable Livewire Components checkout LivewireDemos.

tgugnani: Web Stuff Enthusiast.