Hey,
is it possible to add a eloquent collection as param to a function in Livewire?
This is my view:
<x-zondicon-edit-pencil wire:click="viewDetailPage({{ $item }})" />
This is my function
public function viewDetailPage($item)
{
dd($item);
}
The $item
returns everytime a array instead of a collection. I have the same issue when I’m emit a event with parameters.
How can I get this to work?