Hi I'm currently using Laravel-scout
search, Is there a way to get and group the results through their duplicates but with large data?
Example i have a list of country
- New york
- new York
- New Y0rk
- America
- america
- AmericA
- Japan
I want to get the data to become like this
New York => [
'New york' => [],
'new York' => [],
'New Y0rk' => [],
],
America => [
'America' => [],
'america' => [],
'AmericA' => [],
]