-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logout Event with laravel/ui causes TypeError #324
Comments
What auth driver are you using? Are you able to see what the value of the |
I am using the The value of the |
Hi, @bricehartmann, I'm unable to replicate this issue with a fresh installation of Laravel Pulse and Laravel UI. I'll close this issue, but if you are able to create a minimal reproduction for this we can reopen the issue and take a closer look.
|
@bricehartmann, thanks to #364 I was able to get to the bottom of this one. Can you please make sure your logout route requires authentication by adding: $this->middleware('auth')->only('logout'); to your Please see https://github.com/laravel/ui/pull/269/files |
Pulse fix coming in #366 |
Pulse Version
1.0.0-beta11
Laravel Version
10.43.0
PHP Version
8.3
Livewire Version
3.4.4
Database Driver & Version
MySQL 8
Description
I'm using
laravel/ui
and when a user logs out of my application, theLogout
event hasnull
for the$user
, causing a type error in Laravel Pulse:https://github.com/laravel/pulse/blob/1.x/src/PulseServiceProvider.php#L124
Steps To Reproduce
laravel/ui
laravel/pulse
The text was updated successfully, but these errors were encountered: