FilamentF
Filament14mo ago
Azorky

Mount action from resource

self::getGLAccountField()
                                        ->live()
                                        ->afterStateUpdated(fn ($livewire) => $livewire->mountAction('changeLineItemGlAccount')),


I want to mount an action in my resource using the above code. When using this code on a custom Livewire page, this works, but in my resource I cannot get it to work.

I cannot seem to find anything in the docs mentioning how to mount actions like this in a resource.
Solution
I solved the issue. This code needed to be present on the Create and Edit pages, not on the resource itself
Was this page helpful?