From 3540d6986a229feb85d26d4bac5feb927d9794d4 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 7 Oct 2021 19:33:28 +0200 Subject: [PATCH] wip #4765 --- src/User.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/User.php b/src/User.php index c74a05b..37aa167 100644 --- a/src/User.php +++ b/src/User.php @@ -33,6 +33,11 @@ class User implements public function __construct($socialiteUser) { $this->socialiteUser = $socialiteUser; + $this->id = $this->socialiteUser->getId(); + $this->name = $this->socialiteUser->getName(); + $this->nickname = $this->socialiteUser->getNickname(); + $this->email = $this->socialiteUser->getEmail(); + $this->avatar = $this->socialiteUser->getAvatar(); } /** @@ -77,7 +82,7 @@ class User implements public function getKeyName() { - return $this->getId(); + return 'id'; } } \ No newline at end of file -- 2.39.5