livewire functions inside blade
################ Livewire controller file ####################
public function addTodo($id, $name)
{
...
}
################ Blade file ####################
<button wire:click="addTodo({{ $todo->id }}, '{{ $todo->name }}')">
Add Todo
</button>