© 2026 Hedgehog Software, LLC

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

count of field on relationship

Good day all. I am trying to show a field in a table which lists a total amount (integer) of a field on a relationship. I got "Tables\Columns\TextColumn::make('stocks.amount'),", which works, but it shows 100, 200, 500 etc. I just want to display the single total count of those, instead of individual numbers of each relation record. I have read the docs, but i seem unable to find a correct answer for it. Im sure im missing something, or have overlooked it perhaps? But if someone could enlighten me, i would be grateful!
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

Missing field on relationship
FilamentFFilament / ❓┊help
2y ago
->relationship() on form field directly?
FilamentFFilament / ❓┊help
4mo ago
Reorder on Select field relationship
FilamentFFilament / ❓┊help
2y ago
unknown field on BelongsToMany relationship
FilamentFFilament / ❓┊help
3y ago