© 2026 Hedgehog Software, LLC

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

RelationsManager Table View/Edit actions

I have this model called
Group
Group
that has a recursive parent/child relationship based on a
parent_id
parent_id
.

Inside the GroupRelationsManager I'm getting the associated
GroupResource
GroupResource
which shows all its children, however I'm trying to figure out how to change the links for the view and edit actions on the relations table.

When I show the children of the relationship I'd like to be able to click
Edit
Edit
and go straight into the main editing of that specific Group rather than having it pop up in a modal, so that I can do a quick dive to either add more children/grandchildren or traverse the tree.

How can I modify whether the link will popup in a modal or if it is the default edit/view link that is in the main table for that resource, specially since I'm just inheriting the table resource from the parent:

public function table(Table $table): Table
    {
        return GroupResource::table($table)
            ->headerActions([
                Tables\Actions\CreateAction::make()
            ]);
    }
public function table(Table $table): Table
    {
        return GroupResource::table($table)
            ->headerActions([
                Tables\Actions\CreateAction::make()
            ]);
    }
Solution
Just tested it on one of my apps, and looks like the only change is that the second arg to getUrl() needs to be wrapped as an array:

  Tables\Actions\EditAction::make()
      ->url(fn (Model $record) => PersonnelAssignmentResource::getUrl('edit', [$record])),
  Tables\Actions\EditAction::make()
      ->url(fn (Model $record) => PersonnelAssignmentResource::getUrl('edit', [$record])),
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

Why my RelationsManager table doesnt show actions?
FilamentFFilament / ❓┊help
16mo ago
Show table actions on view page instead of edit page.
FilamentFFilament / ❓┊help
5mo ago
EditAction on relationsmanager updating wrong table
FilamentFFilament / ❓┊help
3y ago
Actions in table column view not triggering
FilamentFFilament / ❓┊help
16mo ago