Skip to content

Instantly share code, notes, and snippets.

@Asharif88
Asharif88 / filament-actions-issue.md
Created January 26, 2026 11:21
Filament actions issue

I'm having issues consistently passing arguments to Actions, I'm not sure if it's me not understanding the documentation or something else. What I'm trying to do is to have an action change a public property on the component by doing something like this:

Action::make('ChartSource_' . $source->id)
                ->icon(Heroicon::Eye)
                ->label($source->name)
                ->button()
                ->arguments(['source' => $source])
                ->action(function (Source $source, $livewire) {
 // Ideally I want to do this