$users = Users::all(); $usersUnique = $users->unique('id'); $usersDupes = $users->diff($usersUnique); dd($users, $usersUnique, $usersDupes);