Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/support-multiple-permissions' in…
Browse files Browse the repository at this point in the history
…to support-multiple-permissions
  • Loading branch information
sammyskills committed Aug 21, 2023
2 parents c39b70d + 6c8f09b commit 8ae0f85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/authorization.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ permissions (**group-level permissions**) to determine if they are allowed.
if ($user->can('users.create')) {
//
}
// Or

// If multiple permissions are specified, true is returned if the user has any of them.
if ($user->can('users.create', 'users.edit')) {
//
}
Expand Down

0 comments on commit 8ae0f85

Please sign in to comment.