'FORWARDED', Request::HEADER_X_FORWARDED_FOR => 'X_FORWARDED_FOR', Request::HEADER_X_FORWARDED_HOST => 'X_FORWARDED_HOST', Request::HEADER_X_FORWARDED_PORT => 'X_FORWARDED_PORT', Request::HEADER_X_FORWARDED_PROTO => 'X_FORWARDED_PROTO', ]; /** * The trusted proxies for this application. * * @var array */ protected $proxies; /** * TrustProxies constructor. * * @param Repository $config */ public function __construct(Repository $config) { $trustedProxies = env('TRUSTED_PROXIES', null); if (!is_null($trustedProxies) && strlen($trustedProxies) > 0) { $this->proxies = $trustedProxies; } parent::__construct($config); } }