remove duplicates row in query laravel code example Example: remove repeated columns laravel $unique = $collection->unique();