📅  最后修改于: 2022-03-11 14:54:36.002000             🧑  作者: Mango
$users = Users::all();
$usersUnique = $users->unique('id');
$usersDupes = $users->diff($usersUnique);
dd($users, $usersUnique, $usersDupes);