Property type not supported in Livewire for property: [{}]

I have a normal table with an edit action and when I call an edit, the above error comes up. But I have no idea where the message originates. Does anyone have any idea how I can narrow down the error?
Solution:
Problem found! In my model there was a getXXXAttribute() which returned a class, this caused the problem....
Jump to solution
2 Replies
dennis_de
dennis_deOP14mo ago
[11:58:05] LOG.error: Property type not supported in Livewire for property: [{}] {
"userId": 65,
"exception": {}
}
[11:58:05] LOG.error: Property type not supported in Livewire for property: [{}] {
"userId": 65,
"exception": {}
}
array:12 [▼ // vendor/livewire/livewire/src/Mechanisms/HandleComponents/HandleComponents.php:494
0 => "Livewire\Features\SupportWireables\WireableSynth"
1 => "Livewire\Features\SupportModels\EloquentCollectionSynth"
2 => "Livewire\Features\SupportModels\ModelSynth"
3 => "Livewire\Features\SupportFormObjects\FormObjectSynth"
4 => "Livewire\Features\SupportFileUploads\FileUploadSynth"
5 => "Livewire\Mechanisms\HandleComponents\Synthesizers\CarbonSynth"
6 => "Livewire\Mechanisms\HandleComponents\Synthesizers\CollectionSynth"
7 => "Livewire\Mechanisms\HandleComponents\Synthesizers\StringableSynth"
8 => "Livewire\Mechanisms\HandleComponents\Synthesizers\EnumSynth"
9 => "Livewire\Mechanisms\HandleComponents\Synthesizers\StdClassSynth"
10 => "Livewire\Mechanisms\HandleComponents\Synthesizers\ArraySynth"
11 => "Livewire\Mechanisms\HandleComponents\Synthesizers\IntSynth"
]
array:12 [▼ // vendor/livewire/livewire/src/Mechanisms/HandleComponents/HandleComponents.php:494
0 => "Livewire\Features\SupportWireables\WireableSynth"
1 => "Livewire\Features\SupportModels\EloquentCollectionSynth"
2 => "Livewire\Features\SupportModels\ModelSynth"
3 => "Livewire\Features\SupportFormObjects\FormObjectSynth"
4 => "Livewire\Features\SupportFileUploads\FileUploadSynth"
5 => "Livewire\Mechanisms\HandleComponents\Synthesizers\CarbonSynth"
6 => "Livewire\Mechanisms\HandleComponents\Synthesizers\CollectionSynth"
7 => "Livewire\Mechanisms\HandleComponents\Synthesizers\StringableSynth"
8 => "Livewire\Mechanisms\HandleComponents\Synthesizers\EnumSynth"
9 => "Livewire\Mechanisms\HandleComponents\Synthesizers\StdClassSynth"
10 => "Livewire\Mechanisms\HandleComponents\Synthesizers\ArraySynth"
11 => "Livewire\Mechanisms\HandleComponents\Synthesizers\IntSynth"
]
Solution
dennis_de
dennis_de14mo ago
Problem found! In my model there was a getXXXAttribute() which returned a class, this caused the problem.
Want results from more Discord servers?
Add your server