Only last group is displaying

Hi, If I have multiple groups set in my table, only the last one will be displayed in the select. this is happening across my entire project. for instance, here, only the type column will be available to group with:
->groups([
Group::make('state.name')->label('Governorat'),
Group::make('type'),
])
->groups([
Group::make('state.name')->label('Governorat'),
Group::make('type'),
])
the same thing if I use simple string groups:
->groups([
'type',
'state.name'
])
->groups([
'type',
'state.name'
])
in this case only state.name will show up in the select menu because it's the last one.
1 Reply
King Dice
King DiceOP6mo ago
GitHub
Fix array_reduce in new groups closure by archilex · Pull Request #...
Fixes array_reduce to use $carry in #13559. It's only returning one group now. Code style has been fixed by running the composer cs command. Changes have been tested to not break existing fu...
Want results from more Discord servers?
Add your server