项目作者: njxqlus

项目描述 :
Laravel Valid Proxies Service Provider
高级语言: PHP
项目地址: git://github.com/njxqlus/laravel-valid-proxies.git
创建时间: 2017-09-05T08:17:17Z
项目社区:https://github.com/njxqlus/laravel-valid-proxies

开源协议:MIT License

下载


Laravel Valid Proxies

Packagist

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

Credits