We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c69c47f commit 72313f4Copy full SHA for 72313f4
src/Assignment.php
@@ -88,7 +88,7 @@ public function removeUsersFromRoles($assignedUsers)
88
->get()
89
->each(function ($role) use ($assignedUsers) {
90
$role->users()
91
- ->whereIn("id", $assignedUsers)
+ ->whereIn("id", data_get($assignedUsers, $role->name, []))
92
->detach();
93
});
94
}
0 commit comments