Skip to content

Commit

Permalink
Added role-affecting upgrade instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
fulopattila122 committed Nov 7, 2023
1 parent 2ba7658 commit 791786d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ $user->givePermissionTo('edit users', 'create users');
$user->givePermissionTo(...Permission::where('name', 'like', '% invoices')->get()->all());
```

Similarly, the `assignRoles()` and `syncRoles()` methods only accept variadic `string|int|Role ...$roles` argument(s).

### Renamed Methods and Scopes

- The `HasRoles::permission()` query scope has been renamed to `havingPermissions()`
Expand Down

0 comments on commit 791786d

Please sign in to comment.