Open Glennmen opened 1 month ago
Can you provide me a demo repository showing this issue?
Sorry for the delay, I have been very busy. I will try to setup something this week.
@rubenvanassche Here you can see the issue that we where having: https://github.com/Glennmen/DemoLaravelDataBug
Very basis setup, can be run with artisan serve and then on the homepage you can see the error when changing the checkboxes.
✏️ Describe the bug When using the data object in Livewire
wire:model.live="startupRule.daysActive"
it produces an exception on model update. We are using it in a input checkbox.↪️ To Reproduce
I was able to fix it by editingthe
get(&$target, $key)
inLivewireDataSynth
and by removing the return valueBaseData
typecast:But not sure if that is the correct solution.
✅ Expected behavior Laravel data to work with Livewire in two way binding.
🖥️ Versions
Laravel: 11.16.0 Laravel Data: 4.7.2 PHP: 8.2 Livewire: 3.5.4