Skip to content

Commit

Permalink
Update docs/authorization.md
Browse files Browse the repository at this point in the history
Co-authored-by: kenjis <kenji.uui@gmail.com>
  • Loading branch information
sammyskills and kenjis authored Aug 21, 2023
1 parent acbeb07 commit 6c8f09b
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 6c8f09b

Please sign in to comment.