Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
get query from ListRecords\Tab within Badge() to show the actual count() of filtered query - Filament
F
Filament
•
3y ago
•
5 replies
∂evelopeɾ
get query from ListRecords\Tab within Badge() to show the actual count() of filtered query
I
'm talking about this
:
https://filamentphp.com/docs/3.x/panels/resources/listing-records#adding-badges-to-filter-tabs
in the example above
, this could be quite useful for showing the number of records that pass that filter
.
I
'm using the method
modifyQueryUsing()
modifyQueryUsing()
to filter the records for every Tab
, but how can I access the query to apply the count
(
) eloquent method to display number of records within the
Badge()
Badge()
method without manually writing the query again
?
Filament
Join
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
How to show total count of related record on Manage Related Record tab badge ?
F
Filament / ❓┊help
2y ago
How do I display the count on a tab badge
F
Filament / ❓┊help
3y ago
Show navigation badge in sub navigation with count of relationship
F
Filament / ❓┊help
14mo ago
Relation Manager in ListRecords Tab
F
Filament / ❓┊help
12mo ago