LaravelPackages.net
Acme Inc.
Toggle sidebar
owenmelbz/https-enforcement

Laravel 5.x middleware to enforce https redirection for your app.

2.597
25
0.0.5
About owenmelbz/https-enforcement

owenmelbz/https-enforcement is a Laravel package for laravel 5.x middleware to enforce https redirection for your app.. It currently has 25 GitHub stars and 2.597 downloads on Packagist (latest version 0.0.5). Install it with composer require owenmelbz/https-enforcement. Discover more Laravel packages by owenmelbz or browse all Laravel packages to compare alternatives.

Last updated

Laravel 5 HTTPS Enforcement Agent

An automatic piece of middleware for Laravel 5.x, which will redirect users accessing non https urls, to the secure equivalent unless specified in the ignore list

Usage

1- Install via composer composer require owenmelbz/https-enforcement

2- Register the service provider - typically done inside the app.php providers array e.g OwenMelbz\HttpsEnforcement\HttpsEnforcementServiceProvider::class

3- Add ENFORCE_HTTPS=true to your application environment config e.g .env

4- Enjoy your stress free architecture agnostic redirects

Why?

Too often we've wasted time configuring SSL redirection, with proxy systems like CloudFlare, with apache development machines and nginx production, this removes all the headache and can simply be turned off and on at a whim.

Star History Chart