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 2e14629 commit 4882cf5Copy full SHA for 4882cf5
src/Listeners/LaravelMixpanelEventHandler.php
@@ -51,8 +51,9 @@ public function onUserLoginAttempt(Attempting $event)
51
/**
52
* @param Model $user
53
*/
54
- public function onUserLogin(Login $user)
+ public function onUserLogin(Login $login)
55
{
56
+ $user = $login->user;
57
$firstName = $user->first_name;
58
$lastName = $user->last_name;
59
@@ -81,8 +82,10 @@ public function onUserLogin(Login $user)
81
82
83
84
- public function onUserLogout(Logout $user = null)
85
+ public function onUserLogout(Logout $logout)
86
87
+ $user = $logout->user;
88
+
89
if ($user) {
90
$this->mixPanel->identify($user->getKey());
91
}
0 commit comments