Replies: 4 comments 2 replies
-
The DataCollection does not support Livewire at the moment due to not adding a dependency on livewire. You have basically two options:
|
Beta Was this translation helpful? Give feedback.
-
@rubenvanassche Could you give an example? I'm having the same issue and we use V3 on Livewire as well. |
Beta Was this translation helpful? Give feedback.
-
If it's not too much trouble, could I know the expected release date for v4? |
Beta Was this translation helpful? Give feedback.
-
toCollection() - method does its job even without Wireable if using Livewire 2. |
Beta Was this translation helpful? Give feedback.
-
Lets say I have the following DTO class.
on a LiveWire component I am trying to mount DTO as this:
and I get
public property [menus] must be of type: [numeric, string, array, null, or boolean]
as an error.I thought that implementing
Wireable interface
and usingWireableData trait
would create a component that would be auto-transformed into a required data type for a LiveWire component.Am I missing something? Please advice.
Beta Was this translation helpful? Give feedback.
All reactions