From: Vincent Vanwaelscappel Date: Thu, 7 Oct 2021 17:33:28 +0000 (+0200) Subject: wip #4765 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=3540d6986a229feb85d26d4bac5feb927d9794d4;p=cubist_socialite.git wip #4765 --- 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