2017 © Pedro Peláez
 

library laravel-https

Laravel Https is middleware to force us to access Secure HTTP requests.

image

novay/laravel-https

Laravel Https is middleware to force us to access Secure HTTP requests.

  • Sunday, January 28, 2018
  • by novay
  • Repository
  • 2 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 13 % Grown

The README.md

Laravel Force HTTPS

Latest Stable Version Total Downloads License: MIT, (*1)

About

Laravel Https is middleware to force us into Secure HTTP requests., (*2)

Requirements

Installation Instructions

  1. From your projects root folder in terminal run:, (*3)

        composer require novay/laravel-https
    
  2. Register the package, (*4)

    • Laravel 5.5 and up Uses package auto discovery feature, no need to edit the config/app.php file., (*5)

    • Laravel 5.4 and below Register the package with laravel in config/app.php under providers with the following:, (*6)

        'providers' => [
        ...
            Novay\ForceHttps\ForceHttpsServiceProvider::class,
        ];
    
  3. Optionally publish the packages views, config file, and language files by running the following from your projects root folder:, (*7)

        php artisan vendor:publish --tag=laravel-https
    
  4. Add the middleware to your routes or controller. See Usage., (*8)

Configuration

laravel-https can be configured in directly in /config/laravel-https.php if you published the assets. Or you can variables to your .env file., (*9)

Usage

From Route File:
  • You can include the https in a route groups or on individual routes.
Route Group Example:
    Route::group(['middleware' => ['https']], function () {
        Route::get('/', 'WelcomeController@welcome');
    });
Individual Route Examples:
    Route::get('/', 'WelcomeController@welcome')->middleware('https');
From Controller File:
  • You can include the https in the contructor of your controller file.
Controller File Example:
    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
       $this->middleware('https');
    }

License

Laravel-Https is licensed under the MIT license. Enjoy!, (*10)

The Versions

28/01 2018

dev-master

9999999-dev

Laravel Https is middleware to force us to access Secure HTTP requests.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Noviyanto Rahmadi

https laravel https secure http https middleware

28/01 2018

v1.0.0

1.0.0.0

Laravel Https is middleware to force us to access Secure HTTP requests.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Noviyanto Rahmadi

https laravel https secure http https middleware