Skip to content

Commit

Permalink
Update teams-permissions doc (#2534)
Browse files Browse the repository at this point in the history
Update unsetRelation() example
  • Loading branch information
shdehnavi committed Oct 30, 2023
1 parent 56f91e8 commit a5142d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/basic-usage/teams-permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ setPermissionsTeamId($new_team_id);
// $user = Auth::user();

// unset cached model relations so new team relations will get reloaded
$user->unsetRelation('roles','permissions');
$user->unsetRelation('roles')->unsetRelation('permissions');

// Now you can check:
$roles = $user->roles;
Expand Down

0 comments on commit a5142d9

Please sign in to comment.