]> _ Git - cubist_socialite.git/commitdiff
wip #4765
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 7 Oct 2021 17:33:28 +0000 (19:33 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 7 Oct 2021 17:33:28 +0000 (19:33 +0200)
src/User.php

index c74a05b4b2f50ab8d72c6a2a3326966d88557f34..37aa1674555e308de7cdff087974777b91dc945a 100644 (file)
@@ -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