© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•17mo ago•
4 replies
Kane G

Action $arguments returning empty in visible closure

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


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


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


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



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


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


Any help would be appreciated.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Reusing Action arguments in Livewire Action
FilamentFFilament / ❓┊help
17mo ago
Returning Action in renderHook
FilamentFFilament / ❓┊help
8mo ago
makeModalSubmitAction arguments are empty?
FilamentFFilament / ❓┊help
3y ago
Cannot access $livewire in Action->hidden() closure
FilamentFFilament / ❓┊help
3y ago