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
i also try select in getTableQuery() function, but got error
that is because you are not reutrning a type of string, you are returning null. It will be down to a column.
do you have any suggest for me to solve this case?
result when i dd query to Raw SQL is different from query run on laravel debugbar
You need to debug the data returned etc, it looks far too complicated