Is it possible to use Filament fields inside custom "Livewire" Action classes?
So, if you are aware of the Action classes that are implemented in a plugin similar to Jetstream, you might understand what I am speaking about. If not, I will explain.
In the hierarchy of a Custom Action class, first there is a registered class/callback such as an Interface using the
The Livewire Component:
This is then extended by the Action class like this:
My question:
Is it possible to use Filament fields in the Action class instead of what is used here so that Users of my package can change the fields without touching the blade view? If so, how could this be done?
In the hierarchy of a Custom Action class, first there is a registered class/callback such as an Interface using the
singleton() design pattern. This Interface contains methods needed to implement the Action class. First, there is a Livewire Component that contains a method using Interface Injection variant of the Dependency Injection design pattern like this.The Livewire Component:
This is then extended by the Action class like this:
My question:
Is it possible to use Filament fields in the Action class instead of what is used here so that Users of my package can change the fields without touching the blade view? If so, how could this be done?