Skip to content

Commit b23f086

Browse files
authored
Merge pull request #3192 from kerrinhardy/5.4
Update authorization.md
2 parents 329b56a + fc9ab30 commit b23f086

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

authorization.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,10 @@ These directives are convenient shortcuts for writing `@if` and `@unless` statem
318318

319319
Like most of the other authorization methods, you may pass a class name to the `@can` and `@cannot` directives if the action does not require a model instance:
320320

321-
@can('create', Post::class)
321+
@can('create', App\Post::class)
322322
<!-- The Current User Can Create Posts -->
323323
@endcan
324324

325-
@cannot('create', Post::class)
325+
@cannot('create', App\Post::class)
326326
<!-- The Current User Can't Create Posts -->
327327
@endcannot

0 commit comments

Comments
 (0)