cURL错误28:在2511毫秒后解决超时问题

I am using php 7.2 and laravel 5.5 and when i tried to login to my website this message appear

cURL error 28: Resolving timed out after 2511 milliseconds

CURLOPT_CUSTOMREQUEST  => $easy->request->getMethod(),
        CURLOPT_URL            => (string) $easy->request->getUri()->withFragment(''),
        CURLOPT_RETURNTRANSFER => false,
        CURLOPT_HEADER         => false,
        CURLOPT_CONNECTTIMEOUT => 2500,

the above is my CurlFactory.php