FFilament•Created by Abi on 1/11/2024 in #❓┊help Table Widget with Group By
Add a column with alias like this
->modifyQueryUsing(function ($query) {
$query->selectRaw('stripe_status as id, stripe_status, count(*) as count')
->groupBy('stripe_status')
->orderBy('count', 'desc');
})