njxqlus / laravel-valid-proxies
Laravel valid proxies
Installs: 20
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/njxqlus/laravel-valid-proxies
Requires
- php: >=7.0
- illuminate/support: ~5.4.0
This package is not auto-updated.
Last update: 2025-10-12 06:47:58 UTC
README
Fix SSL in Laravel 5 when server is behind a load balancer or a reverse proxy
Installation
Install via composer composer require njxqlus/laravel-valid-proxies
For Laravel 5.4 you need to add Service Provider in your config/app.php file:
njxqlus\LaravelValidProxies\ServiceProvider::class
Usage
ValidProxies Middleware already pushed to web
middleware group.
If you want to use middleware global - add to to app\Http\Kernel in $middleware
array:
\njxqlus\LaravelValidProxies\Middleware\ValidProxies::class