© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•15mo ago•
5 replies
pocket.racer

CreateAction not showing in relation manager table header action in view page

So i have this Relation Manager with the following code

CreateAction::make()
    ->action(function (RelationManager $livewire, array $data): Model {
        return $livewire->getRelationship()->create($data);
    }),
CreateAction::make()
    ->action(function (RelationManager $livewire, array $data): Model {
        return $livewire->getRelationship()->create($data);
    }),


On edit page i can see this table header action on the relation manager, but on view page the action is not visible. I tried to attach a ->visible(true) at the end of it and it still doesn't help too
Solution
https://filamentphp.com/docs/3.x/panels/resources/relation-managers#read-only-mode

add:

    public function isReadOnly(): bool
    {
        return false;
    }
    public function isReadOnly(): bool
    {
        return false;
    }


in the relationshipmanager
Managing relationships - Panel Builder - 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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Testing Table Header action in relation manager?
FilamentFFilament / ❓┊help
2y ago
Table header actions not showing in view page
FilamentFFilament / ❓┊help
3y ago
Relation Manager Table Header
FilamentFFilament / ❓┊help
2mo ago
Relation manager in custom view page
FilamentFFilament / ❓┊help
3y ago