GuzzleHttp\Exception\RequestException
cURL error 60: SSL certificate problem: certificate has expired (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
I was calling an API through a controller, it was working fine with the XAMPP server at localhost but on the live server, I am getting this error...please help me to sort out this problem!
My Code in Controller
public function store(Request $request)
{
$data = $request->except('_token');
$url = 'https://api.abc.com/v2/schedule?apikey=abcd1234';
$res = Http::asForm()->post($url, $data)->body();
$res = json_decode($res);
return redirect()->route('Home');
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire