owenmelbz/https-enforcement

Laravel 5.x middleware to enforce https redirection for your app.
2,597 25
Install
composer require owenmelbz/https-enforcement
Latest Version:0.0.5
License:MIT
Last Updated:Jun 2, 2017
Links: GitHub  ·  Packagist
Maintainer: OwenMelbz

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.

Related Packages

owenmelbz/domain-enforcement

Laravel 5 middleware to enforce a single domain on your application. e.g non-www...

4,885 23
yaroslawww/laravel-force-https

Easy redirect to https for Laravel

9,745 12
toxic-lemurs/domain-helper

A domain helper to aid in getting sub domain names and protocols.

67 3
fsasvari/laravel-trailing-slash

Adds redirection with trailing slash in Laravel.

174,113 61
pmk/redirect-october-plugin

Plugin for October CMS to redirect a page to an internal page, or to an external...

32 2