Skip to content

Commit 663fade

Browse files
committed
feat: update logout docs
1 parent 2e8404f commit 663fade

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/docs/auth/user.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,10 @@ auth()->logout('/login');
133133
auth()->logout(['homepage']);
134134
```
135135

136-
If you want to perform a custom operation when a user logs out, you can set a handler for the logout operation:
136+
If you want to perform a custom operation when a user logs out, you can pass a function to the `logout()` method:
137137

138138
```php
139-
auth()->config('session.logout', function () {
139+
auth()->logout(function () {
140140
// your logout handler
141141
});
142142
```
143-
144-
This will ignore whatever route is passed into the `logout()` method and rely solely on the function passed into the session.logout config.

0 commit comments

Comments
 (0)