Aug 20, 2018
0
Level 4
cURL error 7: Failed to connect to studious.test port 80:
I am trying to develop a login controller that returns a password grant token for my iOS app and I am getting this error cURL error 7: Failed to connect to studious.test port 80: . When I call the api with guzzle.
$response = $http->post('http://studious.test/oauth/token', [
'form_params' => [
'grant_type' => 'password',
'client_id' => env('PASSWORD_GRANT_CLIENT'),
'client_secret' => env('PASSWORD_GRANT_SECRET'),
'username' => request('email'),
'password' => request('password'),
'scope' => '',
],
]);
I am using laradock right now.
Please or to participate in this conversation.