Calling a livewire PHP method from a custom field component
Hey,
I have the need to call a PHP method from the view of a Customer Field Component.
If I use
$wire.methodName()
$wire.methodName()
it states the method doesnt exist on the livewire field component.
What's happening is im getting a Javascript event which results in a code, with that code, i need to make an API call and set the state of the field to the result of that API call.