config('codingmatters.crm.url')]); $payload = ['first_name' => $firstName, 'last_name' => $lastName, 'code' => $uuid, 'username' => $username]; try { return $client->post('/register', ['json' => $payload]); } catch (\Exception $exception) { // must log $exception->getMessage(); } } }