https://github.com/njxqlus/laravel-valid-proxies
Laravel Valid Proxies Service Provider
https://github.com/njxqlus/laravel-valid-proxies
laravel laravel-5-package laravel55 proxy
Last synced: 3 months ago
JSON representation
Laravel Valid Proxies Service Provider
- Host: GitHub
- URL: https://github.com/njxqlus/laravel-valid-proxies
- Owner: njxqlus
- License: mit
- Created: 2017-09-05T08:17:17.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-14T08:50:27.000Z (over 7 years ago)
- Last Synced: 2023-08-15T04:12:01.049Z (almost 2 years ago)
- Topics: laravel, laravel-5-package, laravel55, proxy
- Language: PHP
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel Valid Proxies
[](https://packagist.org/packages/njxqlus/laravel-valid-proxies)
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
- [Carsten Jonstrup](https://gist.github.com/cjonstrup)
- [Mikael Agabalyants](https://github.com/njxqlus/laravel-valid-proxies)
- [All contributors](https://github.com/njxqlus/laravel-valid-proxies/graphs/contributors)