Skip to content

Commit f99618e

Browse files
committed
feat: add @guest & @auth note
1 parent 026d5e0 commit f99618e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/docs/frontend/blade.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,8 @@ The `@auth` and `@guest` directives may be used to quickly determine if the curr
414414
@endguest
415415
```
416416

417+
`@guest` will be `true` if leaf auth is not installed and `@auth` will be `false`, which makes them safe to use even if you don't have Leaf Auth installed.
418+
417419
### Roles & Permissions
418420

419421
You can use the `@is` directive to check if the current user has a specific role:

0 commit comments

Comments
 (0)