我正在遵循以下教程
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
}
设置服务器时,计算机生成SE Linux错误,提示httpd服务试图保存在laravel日志中。
后来我注意到了这个错误,并在堆栈上溢出了错误,找到了以下解决方案。
SELinux阻止了httpd(usr / sbin / httpd)对/ var / www / html / bookings / templates_c的写访问
。完毕!
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句