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