infolist repeater action get element
inside an action how do I get the element that is in the infolist.
The info list is built like
$infolist->state(['templates' => $this->templates // which is a collection turned into an array.
inside the repeater I'm trying to add a button to assign something to the livewire component but when i do
Action::make('action')->action(function(what goes here){
dd($current_item);
})
I tried function(Array $item) I tried function(Template $template) its always null.
Thanks.
0 Replies