Skip to content

Add forgetUser() method to GuardHelpers#45208

Merged
taylorotwell merged 1 commit intolaravel:9.xfrom
rtconner:9.x
Dec 7, 2022
Merged

Add forgetUser() method to GuardHelpers#45208
taylorotwell merged 1 commit intolaravel:9.xfrom
rtconner:9.x

Conversation

@rtconner
Copy link
Copy Markdown
Contributor

@rtconner rtconner commented Dec 7, 2022

This is helpful for unit tests. There are situations where you need to perform an action as a logged in user and then run tests as a non-logged in user and ensure behavior is as you wish it to behave. In particular I needed this because TokenGuard has no other way to log out.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants