Я пытаюсь использовать Google Client в моем проекте laravel 5.7, и ниже указаны мои настройки
Командная строка, показывающая расположение php.ini
![enter image description here](https://i.stack.imgur.com/EaJv0.png)
php info
![enter image description here](https://i.stack.imgur.com/xlVF8.png)
Google Client Controller
![enter image description here](https://i.stack.imgur.com/mLU6K.png)
Ошибка Laravel
![enter image description here](https://i.stack.imgur.com/75cV2.png)
composer.json
![enter image description here](https://i.stack.imgur.com/RtYI3.png)
Просьба указать, какой должен быть файл cacert.pem для загрузки.
Яработает на XAMPP, Windows 10
Ответ
Я сделал это следующим образом
https://exceptionshub.com/curl-error-60-ssl-certificate-prblm-unable-to-get-local-issuer-certificate.html
, и это сработало.
$guzzleClient = new \GuzzleHttp\Client(array( 'curl' => array( CURLOPT_SSL_VERIFYPEER => false, ), ));
$client = new \Google_Client();
$client->setHttpClient($guzzleClient);
$client->setDeveloperKey($this->DEVELOPER_KEY);
$youtube = new \Google_Service_YouTube($client);