【发布时间】:2015-06-09 20:27:10
【问题描述】:
我正在学习以下教程
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
}
【问题讨论】:
标签: php facebook laravel laravel-socialite