Skip to content

Commit 2fbf8ea

Browse files
authored
Remove collectRoles that is not being assigned
1 parent 68f9b48 commit 2fbf8ea

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Traits/HasRoles.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ public function removeRole($role)
223223
public function syncRoles(...$roles)
224224
{
225225
if ($this->getModel()->exists) {
226-
$this->collectRoles($roles);
227226
$this->roles()->detach();
228227
$this->setRelation('roles', collect());
229228
}

0 commit comments

Comments
 (0)