laravel delete duplicate rows code example Example: laravel collection remove duplicates $unique = $collection->unique();