我正在遵循以下教程
http://tutsnare.com/social-authentication-in-laravel-5/
我完全按照所说的步骤进行操作,但是当我尝试转储使用以下代码检索到的用户对象时:
$user = Socialize::with('github')->user();
dd($user);
这没有给出任何输出。然而
$user = Socialize::with('github');
dd($user);
确实返回以下对象:
GithubProvider {#194 ▼
#scopes: array:1 [▶]
#request: Request {#37 ▶}
#clientId: "a client id here"
#clientSecret: "a client secret here"
#scopeSeparator: ","
#encodingType: 1
#stateless: false
+"redirectUrl": "My redirect URL
}