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