© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•6mo ago•
7 replies
Damien

Hide empty tables

When using relationship managers is there a way to make the table not render if there are no records.

Thanks, Damien.
Solution
like Dennis said, this doesn't make sense if you are using header actions to create or attach a record.

Anyway, if you want to hide it, I think you can use
getRelationManagers
getRelationManagers
in your Edit or View page:

public function getRelationManagers(): array
{
    return $this->getRecord()
        ->yourRelationship()
        ->exists() ? [YourRelationManager::class] : [];
}
public function getRelationManagers(): array
{
    return $this->getRecord()
        ->yourRelationship()
        ->exists() ? [YourRelationManager::class] : [];
}


Remove the relation manager class from
getRelations
getRelations
method in the Resource
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

Hide tables
FilamentFFilament / ❓┊help
3y ago
hide the Relation tables on the edit page
FilamentFFilament / ❓┊help
3y ago
Hide Table
FilamentFFilament / ❓┊help
17mo ago
Hide navigation
FilamentFFilament / ❓┊help
3y ago