Livewire Checkboxes with wire:model don’t work

Recently I found with this issue on Livewire when I add an property to a wire:model as an array of ids it automatically transform the content into integers. After clicking on the checkboxes it become something like this: The issue is caused by the Javascript compare for Array.includes() where 1 == “1” returns false. Here … Read more