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
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.
Any way to do this?
I have the need to call a PHP method from the view of a Customer Field Component.
If I use
$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.
Any way to do this?