2017 © Pedro Peláez
 

module laravel-https

Force HTTPS in your Laravel application

image

ecrmnn/laravel-https

Force HTTPS in your Laravel application

  • Thursday, August 17, 2017
  • by ecrmnn
  • Repository
  • 1 Watchers
  • 24 Stars
  • 8,181 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 48 % Grown

The README.md

laravel-https

Generate HTTPS-links and redirect all requests to HTTPS. Also works with load balancing, AWS, Heroku and other services, (*1)

, (*2)

Installation

Add to your project using Composer
composer require ecrmnn/laravel-https
Add under providers in config/app.php
\Ecrmnn\LaravelHttps\Providers\ServiceProvider::class,
Add under $middleware in app/Http/Kernel.php
\Ecrmnn\LaravelHttps\Http\Middleware\ForceHttps::class,

Usage

Set environment variable

HTTPS will only be forced when env('HTTPS') is set to true, (*3)

HTTPS=true

What is this?

LaravelHTTPS forces the URL scheme in Laravel to use the HTTPS prefix for all links generated using url() and route(). That mean that all your links can be converted to use HTTPS just by installing LaravelHTTPS, (*4)

Force redirect HTTP to HTTPS

With the middleware included; ForceHttps, you can simply specify that as a global middleware and all requests will be redirected correctly when accessing a non-HTTPS URL., (*5)

Requirements

  • Laravel 5.0 +
  • PHP 7 +

License

MIT © Daniel Eckermann, (*6)

The Versions

17/08 2017

dev-master

9999999-dev

Force HTTPS in your Laravel application

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Daniel Eckermann

17/08 2017

1.0.7

1.0.7.0

Force HTTPS in your Laravel application

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Daniel Eckermann

19/07 2017

1.0.6

1.0.6.0

Force HTTPS in your Laravel application

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Daniel Eckermann