groupby duplicate data remove laravell code example Example: remove repeated columns laravel $unique = $collection->unique();