© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•5mo ago•
3 replies
Merdin

Show table actions on view page instead of edit page.

What I am trying to do:
Currently my
CreateAction
CreateAction
button is only shown on the relationship table when editing the parent record. I want to show this button when viewing the parent record.

What I did:
I currently only found one solution and that is to add the
->authorize()
->authorize()
method on the action.

My issue/the error:
I want to know if there is a (general) setting to show the buttons on the view page instead of the edit page.

Code:
public function table(Table $table): Table
    {
        return $table
            ->headerActions([
                CreateAction::make()
                    ->authorize('create'),
            ])
            ->recordActions([
                EditAction::make(),
                DeleteAction::make(),
            ]);
    }
public function table(Table $table): Table
    {
        return $table
            ->headerActions([
                CreateAction::make()
                    ->authorize('create'),
            ])
            ->recordActions([
                EditAction::make(),
                DeleteAction::make(),
            ]);
    }
Solution
Seems like this is the right solution:
->readOnlyRelationManagersOnResourceViewPagesByDefault(false);
->readOnlyRelationManagersOnResourceViewPagesByDefault(false);

https://filamentphp.com/docs/4.x/resources/managing-relationships#read-only-mode
Managing relationships - Resources - Filament
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

RelationsManager Table View/Edit actions
FilamentFFilament / ❓┊help
3y ago
Table click on row to view instead of edit
FilamentFFilament / ❓┊help
3y ago
Show Edit page instead of List when page is opened
FilamentFFilament / ❓┊help
3y ago
Show attachaction on view page
FilamentFFilament / ❓┊help
2y ago