我正在尝试在wampserver上测试laravel socialite我在谷歌和脸书上试了但是它给了我错误:
cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
我按照Laravel Socialite testing on localhost, SSL certificate issue?
上的解决方案1:Laravel Socialite testing on localhost, SSL certificate issue?和Laravel 5.2 Socialite Facebook Login cURL error 60但问题仍然存在。这是我的代码
public function facebook()
{
return $this->socialite->with('facebook')->redirect();
}
public function facebookCallback()
{
$user = $this->socialite->with('facebook')->user();
dd($user);
}
public function google()
{
return $this->socialite->driver('google')->redirect();
}
public function googleCallback()
{
$user = $this->socialite->driver('google')->user();
dd($user);
}`
我的php.ini是:curl.cainfo ="D:/programs/wamp64/bin/php/cacert.pem.txt"
我不知道我做错了什么。