laravel to igonre duplicate column code example Example: remove repeated columns laravel $unique = $collection->unique();