To insert social login integration on my application, I'm adding Socialite library to my Laravel app. I have a facebook app registered and 2 methods as in laravel documentation: http://laravel.com/docs/5.0/authentication#social-authentication

public function redirectToProvider()
{
    return Socialize::with('github')->redirect();
}

public function handleProviderCallback()
{
    $user = Socialize::with('github')->user();
    dd($user);
}

The request gets submitted to and returned from Facebook sucessfully, but once I reach the callback URL: localhost:8000/social (where the handleProviderCallback()) is called, I get the following error:

RequestException in RequestException.php line 51: cURL error 60: SSL certificate problem: unable to get local issuer certificate

我试着关掉防火墙,但没有成功.真的很沮丧,有人能帮帮我吗?

推荐答案

我找到了here号溶液.我已经下载了这个文件

http://curl.haxx.se/ca/cacert.pem

and set path in php.ini

[cURL] 
curl.cainfo=C:\php\cacert.pem

It works after server restart.

Laravel相关问答推荐

在Laravel Lumen中迭代连接查询数据

laravel vue 惯性分页器删除上一个和下一个链接

Laravel 5 将错误发送到Electron邮件

Laravel/Eloquent:致命错误:在非对象上调用成员函数 connection()

Laravel:如何在 laravel 查询生成器中使用派生表/子查询

Laravel 没有定义

Laravel Artisan Scheduler 中的链式命令?

使用 ModelNotFoundException

Laravel 随机排序

为什么客户凭证应该与 Laravel Passport 中的用户相关联?

如何在 Laravel 4 中使用 SHA1 加密而不是 BCrypt?

无法打开流:没有这样的文件或目录(Laravel)

在 Laravel 5 控制器中找不到类App\Http\Controllers\DB

Laravel Eloquent 多态一对一?

无法声明类 Controller,因为该名称已在使用中

Laravel 验证:数字和整数之间的区别?

Laravel or where

Laravel 更新查询

laravel:如何获取 eloquent 模型的列名?

Laravel如何仅响应没有正文消息的204代码状态