2017 © Pedro Peláez
 

library laravel-https

Force redirect to https for Laravel.

image

padosoft/laravel-https

Force redirect to https for Laravel.

  • Wednesday, May 9, 2018
  • by lopadova
  • Repository
  • 1 Watchers
  • 3 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 44 % Grown

The README.md

Laravel Package to force https redirect.

Latest Version on Packagist Software License Quality Score Build Status Total Downloads, (*1)

This package provides a laravel middleware to force https redirect., (*2)

Table of Contents

Requires

  • "php" : ">=5.6.0",
  • laravel/framework": "~5.2"

Installation

You can install the package via composer: ``` bash $ composer require padosoft/laravel-https, (*3)


### FOR LARAVEL 5.6+ No additional steps required because the service provider use new L5.5+ autodiscovery feature. ### FOR LARAVEL <=5.5 You must install this service provider. ``` php // config/app.php 'provider' => [ ... Padosoft\Laravel\Https\LaravelHttpsServiceProvider::class, ... ];

publish config (optional)

Optionally publish the packages config file by running the following from your projects root folder:, (*4)

    php artisan vendor:publish --tag=laravel-https

register the middleware

Add the middleware to your routes or controller. See Usage., (*5)

USAGE

From Route File:

You can include the HttpsForce in a route groups or on individual routes., (*6)

Route Group Example:

``` php Route::group(['middleware' => ['web', 'HttpsForce']], function () { Route::get('/', 'WelcomeController@welcome'); });, (*7)


### Individual Route Examples: ``` php Route::get('/', 'WelcomeController@welcome')->middleware('HttpsForce'); Route::match(['post'], '/test', 'Testing\TestingController@runTest')->middleware('HttpsForce');

From Controller File:

You can include the HttpsForce in the constructor of your controller file., (*8)

Controller File Example:

``` php /** * Create a new controller instance. * * @return void */ public function __construct() { $this->middleware('HttpsForce'); }, (*9)


## Change log Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently. ## Testing ``` bash $ composer test

Contributing

Please see CONTRIBUTING for details., (*10)

Security

If you discover any security related issues, please email instead of using the issue tracker., (*11)

Credits

About Padosoft

Padosoft (https://www.padosoft.com) is a software house based in Florence, Italy. Specialized in E-commerce and web sites., (*12)

License

The MIT License (MIT). Please see License File for more information., (*13)

The Versions

09/05 2018

dev-master

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

Force redirect to https for Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

https seo ssl redirect padosoft laravel-https

09/05 2018

1.0.3

1.0.3.0 https://github.com/padosoft/laravel-https

Force redirect to https for Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

https seo ssl redirect padosoft laravel-https

09/05 2018

1.0.2

1.0.2.0 https://github.com/padosoft/laravel-https

Force redirect to https for Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

https seo ssl redirect padosoft laravel-https

09/05 2018

1.0.1

1.0.1.0 https://github.com/padosoft/laravel-https

Force redirect to https for Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

https seo ssl redirect padosoft laravel-https

09/05 2018

1.0.0

1.0.0.0 https://github.com/padosoft/laravel-https

Force redirect to https for Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

https seo ssl redirect padosoft laravel-https