managoresh
managoresh
FFilament
Created by managoresh on 9/17/2023 in #❓┊help
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!
6 replies