In my development, my code works correctly. When I click on my server, it becomes an error.
cURL error 6: Could not resolve host: http (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
Here is my code:
use GuzzleHttp\Client; try { $client = new Client(); $client->request('POST', env('API_DOMAIN') . '/v1/user/auth/verified_email', ['headers' => ['Authorization' => 'cm9vcGlhLnVzZXIud2ViOkY0RVN3VXJheS1qVVB1a18='], 'query' => ['token' => $key]]); return redirect('/')->with('status', 'Your email has been verified. Thanks!')->with('statusType', 'success'); } catch (ConnectException $e) { Log::error($e); return redirect('/'); }
Any solution?
thanks
source share