在 laravel 5.1 中使用 socialite 时出错

Error while using socialite in laravel 5.1

每当我尝试在回调中使用 Socialite::driver('facebook')->user() 时,就会出现此错误!

No system CA bundle could be found in any of the the common system locations. PHP versions earlier than 5.6 are not properly configured to use the system's CA bundle by default.

问题出在我的 ssl 扩展上。我通过下载新 cacert.pem 并将其链接到 php.ini 文件解决了这个问题。