fideloper / TrustedProxy

Laravel Proxy Package for handling sessions when behind load balancers or other intermediaries.
MIT License
7.36k stars 126 forks source link

Illuminate\Http\Request::HEADER_X_FORWARDED_ALL #150

Closed qdmitry closed 2 years ago

qdmitry commented 2 years ago

I instal latest version 4.4.1, but error.

Снимок экрана 2022-02-09 в 11 48 31
qdmitry commented 2 years ago

I don't understand why the code doesn't match the master branch.

Снимок экрана 2022-02-09 в 12 06 59
edsaunders92 commented 2 years ago

See Issue #149

For laravel 9 this package is no longer needed so simply remove it

qdmitry commented 2 years ago

@edsaunders92 Take a closer look at the problem! My project files are fine. The problem is loading from composer.

qdmitry commented 2 years ago
153143687-87bc16c3-b973-4f96-9226-59d837174994
omidxplimbo commented 2 years ago

i can't install this package for laravel 9 please help me

qdmitry commented 2 years ago

@omidxplimbo

Please make following changes file: app/Http/Middleware/TrustProxies.php

use Fideloper\Proxy\TrustProxies as Middleware 
to 
use Illuminate\Http\Middleware\TrustProxies as Middleware.

for Laravel 9, this package is no longer needed.