How to get distinct Size like display 1 M size instead of 2 M in laravel, shown in the screenshot below [closed]

Eklenme Tarih 1 hour ago
Active 19
Görüntülenme 89
S

How to get distinct Size like display 1 M size instead of 2 M in laravel, shown in the screenshot below [closed]