Problem creating Custom Field rendering Livewire
I would like to share the data between custom field livewire and rendered child livewire. I get error Object of class Closure could not be converted to string. Below is my custom field view file . In my child livewire i am using #[Modelable] as per livewire 3 documentation.
Solution:Jump to solution
I resolved my issue. We can refer https://discord.com/channels/883083792112300104/1314488353235664937
3 Replies
I think you could provide a minimal repo on github to reproduce this issue
@LeandroFerreira issue is straight forward..... I am trying to create a custom field. But I would like to bind the data used in the Livewire with the field name. wire:model="{{ $getStatePath() }}" used in the livewire rendering is giving the mentioned error. Object of class Closure could not be converted to string.
Solution
I resolved my issue. We can refer https://discord.com/channels/883083792112300104/1314488353235664937