Table Widget with Group By
I am creating a table widget with a summary of Subscription Information and here is the code for the table
4 Replies
I get the error
Filament\Widgets\TableWidget::getTableRecordKey(): Return value must be of type string, null returned
any advice on this would be greatcan you post the migration ?
GitHub
cashier-stripe/database/migrations/2019_05_03_000002_create_subscri...
Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services. - laravel/cashier-stripe
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');
})