© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•4mo ago•
13 replies
Henrique

Help with resource actions

What I am trying to do:

I Have a resource who has a user related to it.
In the table i have a column to show who is this user.

So, i want when I click the column show a modal with infos of the user(a view action)

What I did:
The column:
php TextColumn::make('executor.name')
                        ->label('Executor')
                        ->action(ViewAction::make('viewExecutioner')
                            ->model(UserResource::getModel())
                            ->record(fn (Execution $record): User => $record->executor)
                            ->schema(UserResource::form(new Schema())->getComponents()) // ignore the schema, i do not build yet
                        )
                        ->html()
                        ->sortable(),
php TextColumn::make('executor.name')
                        ->label('Executor')
                        ->action(ViewAction::make('viewExecutioner')
                            ->model(UserResource::getModel())
                            ->record(fn (Execution $record): User => $record->executor)
                            ->schema(UserResource::form(new Schema())->getComponents()) // ignore the schema, i do not build yet
                        )
                        ->html()
                        ->sortable(),

My issue/the error:

The action try to get the table record(Execution) but i explicit say what model the action should use.
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

Nested Resource Header Actions
FilamentFFilament / ❓┊help
6mo ago
Help with github actions
FilamentFFilament / ❓┊help
2y ago
Simple modal resource extra actions
FilamentFFilament / ❓┊help
2y ago
Resource getPages() not compatible with table->actions() modals?
FilamentFFilament / ❓┊help
3y ago