ITADN

Add `elseImpersonating` and `notImpersonating` blade directives

#220Pull RequestChrisToxz 创建于 2025-03-10
C
ChrisToxzcommented
This PR adds 3 new blade directives. `@impersonating` and `@endImpersonating` already exists, but was missing an else statement. This PR introduces `@elseImpersonating` . You can now do: ``` @impersonating Exit impersonating @elseImpersonating Start impersonating @endImpersonating ``` This PR also adds `@notImpersonating` and `@endNotImpersonating` ``` @notImpersonating Start impersonating @endNotImpersonating ``` As suggested in #76 hereby the PR with tests.
合并状态:未合并 0 条评论