F
Filament13mo ago
cakan

Refresh tab badge

Is it possible to refresh a tab badge? I have Infolist which displays data in tabs. One of the tabs has a badge which displays number of users and a list of users. If I delete a user from the list, badge will still display old count of users. Is it possible to refresh the badge value or to somehow make it reactive? My tab is defined like this:
Tabs\Tab::make("Members")
->badge(fn(Company $record) => $record->users()->count())
->schema([
Pages\CompanyUsers::make('members')
]),
Tabs\Tab::make("Members")
->badge(fn(Company $record) => $record->users()->count())
->schema([
Pages\CompanyUsers::make('members')
]),
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server