© 2026 Hedgehog Software, LLC

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

Change the active relation manager tab

Is there a way of accessing the parent Resource from inside a RelationManager?

E.g I want to change the tab after this action has been called but > Property [$parent] not found on component
->bulkActions([
    Tables\Actions\DeleteBulkAction::make()
        ->after(function (ProductsRelationManager $livewire, Tables\Actions\DeleteBulkAction $action) {
            $livewire->parent->activeRelationManager = array_key_first($livewire->parent->getRelationManagers());
        }),
])
->bulkActions([
    Tables\Actions\DeleteBulkAction::make()
        ->after(function (ProductsRelationManager $livewire, Tables\Actions\DeleteBulkAction $action) {
            $livewire->parent->activeRelationManager = array_key_first($livewire->parent->getRelationManagers());
        }),
])


I found
$livewire->getPageClass()
$livewire->getPageClass()
but this only returns the string
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

relation manager in tab
FilamentFFilament / ❓┊help
3y ago
Relation Manager: Tab Title?
FilamentFFilament / ❓┊help
3y ago
Programmatically change active Tab
FilamentFFilament / ❓┊help
7mo ago
Relation Manager in ListRecords Tab
FilamentFFilament / ❓┊help
12mo ago