Php 文件\u获取\u内容(https://www.google.com/recaptcha/api/siteverify):无法打开laravel项目中的流

Php 文件\u获取\u内容(https://www.google.com/recaptcha/api/siteverify):无法打开laravel项目中的流,php,laravel,forms,validation,recaptcha,Php,Laravel,Forms,Validation,Recaptcha,昨天它工作得很好,但今天它不工作,在我的Laravel项目中显示了这个错误 错误:文件\u get\u contents():未能打开流:连接尝试失败,因为连接方在一段时间后没有正确响应,或者由于连接的主机未能响应而建立的连接失败 我正在使用“google/recaptcha”:“~1.1”实现google验证码 我的验证Google Recaptcha的代码 public function passes($attribute, $value) { $reCaptchha = new R

昨天它工作得很好,但今天它不工作,在我的Laravel项目中显示了这个错误

错误:文件\u get\u contents():未能打开流:连接尝试失败,因为连接方在一段时间后没有正确响应,或者由于连接的主机未能响应而建立的连接失败

我正在使用“google/recaptcha”:“~1.1”实现google验证码

我的验证Google Recaptcha的代码

public function passes($attribute, $value)
{
    $reCaptchha = new ReCaptcha(env('GOOGLE_RECAPTCHA_SECRET'));
    $response = $reCaptchha->verify($value,$_SERVER['REMOTE_ADDR']);
    return $response->isSuccess();
}

请帮助我删除此错误。

确保您的web主机允许通过
文件获取内容进行外部HTTPS连接
此错误适用于主机,
主机的磁盘使用量已满