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.
collectPermissions
1 parent bfb824a commit 502ec93Copy full SHA for 502ec93
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