aindot / proxy-setup
Force HTTPS links for your app if you are behind a proxy such as HAproxy.
Fund package maintenance!
v0.1
2025-07-17 20:41 UTC
Requires
- php: ^8.4
- illuminate/contracts: ^10.0||^11.0||^12.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^10.0.0||^9.0.0||^8.22.0
- pestphp/pest: ^3.0
- pestphp/pest-plugin-arch: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
README
[] Add Middleware to trust proxies IP's.
You can install the package via composer:
composer require aindot/proxy-setup
You can publish and run the migrations with:
You can publish the config file with:
php artisan vendor:publish --tag="proxy-setup-config"
This is the contents of the published config file:
return [ 'https' => env('HTTPS', false), ];
License
The MIT License (MIT). Please see License File for more information.