Skip to content

Add elseImpersonating and notImpersonating blade directives#220

Open
ChrisToxz wants to merge 7 commits into
404labfr:masterfrom
ChrisToxz:master
Open

Add elseImpersonating and notImpersonating blade directives#220
ChrisToxz wants to merge 7 commits into
404labfr:masterfrom
ChrisToxz:master

Conversation

@ChrisToxz
Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant