We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cd1983c + 502ec93 commit 3c05f04Copy full SHA for 3c05f04
src/Traits/HasPermissions.php
@@ -450,7 +450,6 @@ public function forgetWildcardPermissionIndex(): void
450
public function syncPermissions(...$permissions)
451
{
452
if ($this->getModel()->exists) {
453
- $this->collectPermissions($permissions);
454
$this->permissions()->detach();
455
$this->setRelation('permissions', collect());
456
}
0 commit comments