© 2026 Hedgehog Software, LLC

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

Table tabs from database

I looked at the demo application and see the below tab on the table but instead of passing static value i want to retrieve fom the database.
:
public function getTabs(): array
{
return [
null => ListRecords\Tab::make('All'),
'new' => ListRecords\Tab::make()->query(fn ($query) => $query->where('status', 'new')),
'processing' => ListRecords\Tab::make()->query(fn ($query) => $query->where('status', 'processing')),
'shipped' => ListRecords\Tab::make()->query(fn ($query) => $query->where('status', 'shipped')),
'delivered' => ListRecords\Tab::make()->query(fn ($query) => $query->where('status', 'delivered')),
'cancelled' => ListRecords\Tab::make()->query(fn ($query) => $query->where('status', 'cancelled')),
];
}
instead of new, processing, etc. i want to get a branch name
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

Table Tabs
FilamentFFilament / ❓┊help
3y ago
Table Columns from Database
FilamentFFilament / ❓┊help
2y ago
Table from different database connection
FilamentFFilament / ❓┊help
3y ago
Table Tabs in RelationManager
FilamentFFilament / ❓┊help
17mo ago