Skip to content

Logout Event with laravel/ui causes TypeError #324

Closed
@bricehartmann

Description

@bricehartmann

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, the Logout event has null for the $user, causing a type error in Laravel Pulse:

Laravel\Pulse\Pulse::rememberUser(): Argument #1 ($user) must be of type Illuminate\Contracts\Auth\Authenticatable, null given, called in /home/forge/example.com/vendor/laravel/pulse/src/PulseServiceProvider.php on line 124

https://github.com/laravel/pulse/blob/1.x/src/PulseServiceProvider.php#L124

Steps To Reproduce

  1. Install laravel/ui
  2. Install laravel/pulse
  3. Configure exception handling for Pulse
  4. Log in to the application
  5. Log out of the application

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions