FilamentF
Filament15mo ago
Kane G

Action $arguments returning empty in visible closure

I'm currently trying to access to $arguments data within a visible closure but it's currently returning empty. Is it possible to access this variable here? I know $arguments are being passed correctly because they work fine in modalDescription

This is an Action on a custom Livewire component on a custom page using Filament\Actions\Action

Function not working:
->visible(fn(array $arguments) => dd($arguments))

Result:
[] // app/Livewire/SubscriptionManagement.php:134


Function working:
->modalDescription(fn(array $arguments) => dd($arguments))

Result:
array:1 [▼ // app/Livewire/SubscriptionManagement.php:136
  "name" => "Test Subscription"
]


Any help would be appreciated.
Was this page helpful?