2017 © Pedro Peláez
 

library force-https

Laravel Middleware to force a secure connection

image

jkniest/force-https

Laravel Middleware to force a secure connection

  • Thursday, December 14, 2017
  • by jkniest
  • Repository
  • 1 Watchers
  • 2 Stars
  • 1,017 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Force HTTPS Middleware

Latest Stable Version Total Downloads License StyleCI, (*1)

This package only does one thing: Force a connection through https! If a user visit the site with an unsecure "http"-Request (example: http://example.com) he will be automatically redirected to a secure route (example: https://example.com), (*2)


Installation

1) In order to install the package, just run the following command in the root directory of your laravel installation:, (*3)

composer require jkniest/force-https

2) If you are using Laravel 5.4 oder below, open the config/app.php file and add the following code to the providers array:, (*4)

jkniest\ForceHttps\ForceHttpsServiceProvider::class,

3) Run the command below to copy the configuration files to your config folder, (*5)

php artisan vendor:publish --tag="force-https"

4) Add the following line to the .env file, (*6)

FORCE_HTTPS=true

5) Open the app/Http/Kernel.php file and add the following code to the middleware array:, (*7)

\jkniest\ForceHttps\ForceHttps::class,

To disable the https-redirection (for example on staging servers) just change the FORCE_HTTPS=true in your .env file to FORCE_HTTPS=false, (*8)


License

The ForceHttps package is open-sourced software licensed under the MIT license., (*9)

The Versions

14/12 2017

dev-master

9999999-dev

Laravel Middleware to force a secure connection

  Sources   Download

MIT

The Requires

 

by Jordan Kniest

14/12 2017

1.0.2

1.0.2.0

Laravel Middleware to force a secure connection

  Sources   Download

MIT

The Requires

 

by Jordan Kniest

28/01 2017

1.0.1

1.0.1.0

Laravel Middleware to force a secure connection

  Sources   Download

MIT

The Requires

 

by Jordan Kniest

28/01 2017

1.0

1.0.0.0

Laravel Middleware to force a secure connection

  Sources   Download

MIT

The Requires

 

by Jordan Kniest