Stevebauman\Location\Location::getClientIP PHP Method

getClientIP() protected method

Returns the client IP address. Will return the set config IP if localhost testing is set to true.
protected getClientIP ( ) : string
return string
    protected function getClientIP()
    {
        return $this->localHostTesting() ? $this->getLocalHostTestingIp() : request()->ip();
    }