F
Filament12mo ago
jack5m

How to show Sum Data in Table Widget? Request for help

Hi filament community I have trouble in show Sum data in table widget. My expectation is when i choose option '123' in location options, i need to show sum data into table. I try to dd($query->get()) in this case and show right result. But when show in table, it not shown as right result. My code in below image
7 Replies
jack5m
jack5mOP12mo ago
No description
jack5m
jack5mOP12mo ago
i also try select in getTableQuery() function, but got error
No description
No description
jack5m
jack5mOP12mo ago
toeknee
toeknee12mo ago
that is because you are not reutrning a type of string, you are returning null. It will be down to a column.
jack5m
jack5mOP12mo ago
do you have any suggest for me to solve this case?
jack5m
jack5mOP12mo ago
result when i dd query to Raw SQL is different from query run on laravel debugbar
No description
No description
toeknee
toeknee12mo ago
You need to debug the data returned etc, it looks far too complicated
Want results from more Discord servers?
Add your server