table row grouping by BelongsToMany
public static function table(Table $table): Table
{
return $table
->columns([
Tables\Columns\TextColumn::make('name'),
Tables\Columns\TextColumn::make('purchase_date'),
Tables\Columns\TextColumn::make('sno'),
Tables\Columns\TextColumn::make('status')
])
->filters([
//
])
->actions([
Tables\Actions\ViewAction::make(),
Tables\Actions\EditAction::make(),
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
Tables\Actions\DeleteBulkAction::make(),
]),
])
->groups([
Tables\Grouping\Group::make('group.name')->label(__('Group')),
]);
}
row group not show, can some tell where is issue?0 Replies