Skip to content

Commit fc9ab30

Browse files
authored
Update authorization.md
Include namespace in 'Actions that don't require models' in the Blade section
1 parent eda0677 commit fc9ab30

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)