© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
TiBiBa

Associate headerAction not showing on Relation manager?

Hi! We've just migrated to v3 and have some issues with a
HasMany
HasMany
relation and the
AssociateAction
AssociateAction
. When adding an
AssociateAction
AssociateAction
to the headerActions of the Relation Manager table the action button is not shown. Using the following snippet the normal action is displayed as expected but the associate action is not. I didn't run into this issue with v2 and unable to find a cause, thanks in advance!

->headerActions([               Tables\Actions\Action::make('test123'),
Tables\Actions\AssociateAction::make(),
])
->headerActions([               Tables\Actions\Action::make('test123'),
Tables\Actions\AssociateAction::make(),
])


Edit
I run into the same issue with an Edit and Delete action on the items. The View action is rendered as expected. However, Detach actions in turn don't work either. I've tried this accross multiple relation managers.
Solution
Just found a solution. This is due to the relations only being readOnly on view by default. Hiding all actions that can mutate the relation (so all instead of the view). Adding the following to your relation is the fix:
public function isReadOnly(): bool
{
    return false;
}
public function isReadOnly(): bool
{
    return false;
}
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

Relation Manager Button not showing up
FilamentFFilament / ❓┊help
2y ago
Relation Manager Not Showing related items
FilamentFFilament / ❓┊help
3y ago
Permission on Relation Manager
FilamentFFilament / ❓┊help
16mo ago
Widget On Relation Manager
FilamentFFilament / ❓┊help
2y ago