php - Can not get key value from maxmind return object

one text

Solution:

you need to use the names as per these keys:

 [0] => autonomousSystemNumber
                    [1] => autonomousSystemOrganization
                    [2] => connectionType
                    [3] => domain
                    [4] => ipAddress
                    [5] => isAnonymous
                    [6] => isAnonymousProxy
                    [7] => isAnonymousVpn
                    [8] => isHostingProvider
                    [9] => isLegitimateProxy
                    [10] => isp
                    [11] => isPublicProxy
                    [12] => isSatelliteProvider
                    [13] => isTorExitNode
                    [14] => network
                    [15] => organization
                    [16] => staticIpScore
                    [17] => userCount
                    [18] => userType
                )

So, basically for example:

$record->traits->ipAddress

Source