Hi,
I’m having an Array in my Livewire model like this:
public $settings = [
‘first’ => true,
‘second’ => false,
];
In my Livewire view, I want to call the Magic Toogle action ‘first’.
I tried with
<button wire:click="$toggle('settings.first')">Test</button>
But it can’t find the property.
How do I toggle the boolean ‘first’ in my Settings array ?