*/ class TrustProxies extends Middleware { /** * The trusted proxies for this application. * * @var array */ protected $proxies; /** * The headers that should be used to detect proxies. * * @var int */ protected $headers = Request::HEADER_X_FORWARDED_ALL; /** * Create new trust proxies instance. * * @return void */ public function __construct() { $proxies = Config::get('trustedproxies.proxies'); $this->proxies = empty($proxies) ? '*' : explode(',', trim($proxies)); } }