2017 © Pedro Peláez
 

library laravel-https

Redirects http requests to https according to the configuration

image

winxaito/laravel-https

Redirects http requests to https according to the configuration

  • Thursday, January 25, 2018
  • by WinXaito
  • Repository
  • 1 Watchers
  • 1 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Si vous souhaitez lire ce fichier README en français, cliquez ici., (*1)

Laravel HTTPS redirection

This package aims to redirect your HTTP requests to HTTPS very simply., (*2)

Installation

NB: This package has not been tested below Laravel 5.5, (*3)

First, use the function below:, (*4)

composer require winxaito/laravel-https

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php, (*5)

WinXaito\LaravelHttpsRedirect\LaravelHttpsServiceProvider::class,

If you want to work with the configurations without going through an environment file, run the following command and then edit the config/https-redirection.php file, (*6)

php artisan vendor:publish --provider="WinXaito\LaravelHttpsRedirect\LaravelHttpsServiceProvider"

How to use it ?

This package works with environment variables in order of priority.
List of constants in order of priority:, (*7)

  • HTTPS_FORCE: If this value is true, then in all cases the requests will be redirected to HTTPS, otherwise we go to the following constant:
  • HTTPS_PROHIBIT: If this constant is true, the queries will not be redirected, if it is false, then we go to the following constant:
  • APP_ENV: If this constant is production, then we redirect to HTTPS, otherwise we go to the following constant:
  • APP_DEBUG: If the application is not in debug mode, it is redirected to HTTPS, unless HTTPS_PROHIBIT is true. If the application is in debug mode then the address will not be redirected.

By default if no environment variable is defined we have the following values:, (*8)

  • HTTPS_FORCE = false
  • HTTPS_PROHIBIT = false
  • APP_ENV = production
  • APP_DEBUG = false

Therefore by default the redirection is enabled., (*9)

License

The license is GNU GPL3, therefore if you use this you must respect the indications of the license. For proprietary software that would like to use this library without making their source code available, please contact me., (*10)

The Versions

25/01 2018

dev-master

9999999-dev https://github.com/WinXaito/laravel-https

Redirects http requests to https according to the configuration

  Sources   Download

GPL-3.0-or-later

The Requires

  • php >=7.0.0

 

by Avatar WinXaito

laravel https redirect https-redirect

25/01 2018

v0.1.0

0.1.0.0 https://github.com/WinXaito/laravel-https

Redirects http requests to https according to the configuration

  Sources   Download

GPL-3.0-or-later

The Requires

  • php >=7.0.0

 

by Avatar WinXaito

laravel https redirect https-redirect