Skip to content

Commit

Permalink
Fix typo in docs for @canModel
Browse files Browse the repository at this point in the history
  • Loading branch information
k0ka authored Aug 20, 2024
1 parent 45044d7 commit cfb7ad3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/6/api-reference/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -747,15 +747,15 @@ directive @canFind(
) repeatable on FIELD_DEFINITION
```
### canRoot
### @canModel
```graphql
"""
Check a Laravel Policy to ensure the current user is authorized to access a field.

Check the policy against the root model.
"""
directive @canRoot(
directive @canModel(
"""
The model name to check against.
"""
Expand Down
4 changes: 2 additions & 2 deletions docs/master/api-reference/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -747,15 +747,15 @@ directive @canFind(
) repeatable on FIELD_DEFINITION
```
### canRoot
### @canModel
```graphql
"""
Check a Laravel Policy to ensure the current user is authorized to access a field.

Check the policy against the root model.
"""
directive @canRoot(
directive @canModel(
"""
The model name to check against.
"""
Expand Down

0 comments on commit cfb7ad3

Please sign in to comment.