代碼: 選擇全部
if (PHP_OS == 'Darwin') {
$response = Curl::to($url)
->withOption('SSL_VERIFYPEER', true)
//->enableDebug(storage_path() . '/logs/curl.log')
//->returnResponseObject()
->get();
} else {
$response = Curl::to($url)
->get();
}