class
Illuminate
/
Http
/
Middleware
/
TrustProxies
You are viewing an older version of the documentation. For the latest, please visit master documentation.
TrustProxies
Properties
protected
$proxies array|string|null
The trusted proxies for the application.
Default: null
protected
$headers int
The proxy header mappings.
Default: int
Methods
protected
setTrustedProxyIpAddresses ( Request $request ) : void
Sets the trusted proxies on the request.
Parameters
- $request Request
protected
setTrustedProxyIpAddressesToSpecificIps ( Request $request , array $trustedIps ) : void
Specify the IP addresses to trust explicitly.
Parameters
- $request Request
- $trustedIps array
protected
setTrustedProxyIpAddressesToTheCallingIp ( Request $request ) : void
Set the trusted proxy to be the IP address calling this servers.
Parameters
- $request Request
protected
getTrustedHeaderNames ( ) : int
Retrieve trusted header name(s), falling back to defaults if config not set.
protected
proxies ( ) : array|string|null
Get the trusted proxies.