laravel项目在windows下开发过程中出现如下错误

RequestException in CurlFactory.php line 187:
cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

解决方案

  1. 下载http://curl.haxx.se/ca/cacert.pem
  2. 复制到C:\Windows\
  3. 修改php.ini,添加curl.cainfo = "C:\Windows\cacert.pem"
  4. 重启apache