Controller/AccountsController.php
public function updateLastLogin($id, $successful = null)
    {
        $parameters = [
            'query' => [],
            'body' => json_encode(['successful' => $successful], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->post('v1/accounts/users/' . $id . '/registerloginattempt', $parameters);
        $result = new User($result);

        return $result;
    }
public function updateLastLogin($id, $successful = null)
    {
        $parameters = [
            'query' => [],
            'body' => json_encode(['successful' => $successful], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->post('v1/accounts/users/' . $id . '/registerloginattempt', $parameters);
        $result = new User($result);

        return $result;
    }
Update the last login time for a user Update the last login time for a user.

@param  int  $id
@param  bool $successful Login attempt successful or not
@return User