njxqlus / laravel-valid-proxies by njxqlus

Laravel valid proxies
18
0
2
Package Data
Maintainer Username: njxqlus
Maintainer Contact: njxqlus@gmail.com (Mikael Agabalyants)
Package Create Date: 2017-09-05
Package Last Update: 2018-02-14
Language: PHP
License: MIT
Last Refreshed: 2024-04-25 15:15:17
Package Statistics
Total Downloads: 18
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

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