Looking to hire Laravel developers? Try LaraJobs

laravel-force-https maintained by lucasvscn

Description
Patch to force every request to be made with https.
Last update
2017/05/12 17:04 (dev-master)
License
Downloads
91
Tags

Comments
comments powered by Disqus

Laravel Force HTTPS

Workaround to deal with a particular environment that kills redirections from port 80 (http) to 443 (https).

Once this package is enabled, the application should force all URLs to be https while in 'production' environment.

Install

Register the ServiceProvider in config/app.php

'providers' => [

    // ...
    LucasVscn\ForceHttps\ServiceProvider::class,
];