We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e8404f commit 663fadeCopy full SHA for 663fade
src/docs/auth/user.md
@@ -133,12 +133,10 @@ auth()->logout('/login');
133
auth()->logout(['homepage']);
134
```
135
136
-If you want to perform a custom operation when a user logs out, you can set a handler for the logout operation:
+If you want to perform a custom operation when a user logs out, you can pass a function to the `logout()` method:
137
138
```php
139
-auth()->config('session.logout', function () {
+auth()->logout(function () {
140
// your logout handler
141
});
142
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