解决Laravel连接Algolia问题:Impossible to connect, please check your Algolia Application Id.
在Laravel中执行php artisan scout:import "App\Models\*"时报错:Impossible to connect, please check your Algolia Application Id,原因是PHP curl库连接Algolia时没有找到CA根证书,解决方案如下:
1、从https://curl.haxx.se/ca/cacert.pem下载最新的cacert.pem并放置在某处;
2、php.ini配置文件中设置其绝对路径:
[curl]
curl.cainfo = "*/cacert.pem"