how to find and delete duplicate data but different id laravel code example Example: remove repeated columns laravel $unique = $collection->unique();