Request::getClientIps PHP Method

getClientIps() public static method

In the returned array the most trusted IP address is first, and the least trusted one last. The "real" client IP address is the last one, but this is also the least trusted one. Trusted proxies are stripped. Use this method carefully; you should use getClientIp() instead.
See also: getClientIp()
public static getClientIps ( ) : array
return array The client IP addresses
        public static function getClientIps()
        {
            //Method inherited from \Symfony\Component\HttpFoundation\Request
            return \Illuminate\Http\Request::getClientIps();
        }

Usage Example

Example #1
0
 public function getEventData()
 {
     // timestamp
     $timestamp = Carbon::now()->timestamp;
     $actor_id = $this->actor;
     $source_ip = \Request::getClientIps();
     $port = \Request::getPort();
     $duration = 'unknown';
 }
All Usage Examples Of Request::getClientIps