© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•15mo ago•
1 reply
mg

How to pass some data to my custom view(livewire component) in filament table action?

Hi,

This is my filament table action.
Action::make('setting')
                    ->iconButton()
                    ->icon('heroicon-o-cog-6-tooth')
                    ->modalWidth(MaxWidth::Large)
                    ->fillForm(fn (Website $record) => $record->toArray())
                    ->form([
                        View::make('filament.components.user-shortener-settings'),
                    ])
                    ->modalSubmitAction(false),
Action::make('setting')
                    ->iconButton()
                    ->icon('heroicon-o-cog-6-tooth')
                    ->modalWidth(MaxWidth::Large)
                    ->fillForm(fn (Website $record) => $record->toArray())
                    ->form([
                        View::make('filament.components.user-shortener-settings'),
                    ])
                    ->modalSubmitAction(false),


This is the action of my
websites
websites
table and I am trying to pass
website_id
website_id
to the view(
user-shortener-settings
user-shortener-settings
).

I have tried to use
viewData()
viewData()
method but no luck!

Please help me!
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

pass data to the view table component
FilamentFFilament / ❓┊help
15mo ago
Filament table in Livewire component!
FilamentFFilament / ❓┊help
2y ago
Pass Data From Filament TextInput to Livewire Component
FilamentFFilament / ❓┊help
2y ago
Filament Action inside a custom Livewire component
FilamentFFilament / ❓┊help
2y ago