morningtrain/laravel-https

Provides some initial https setup
2,874 1
Install
composer require morningtrain/laravel-https
Latest Version:1.6.0
PHP:^7.2|^8.0
License:GPL-3.0-only
Last Updated:May 8, 2023
Links: GitHub  ·  Packagist
Maintainer: morningtrain

Helper for SSL & HTTPS

Install

Via Composer

$ composer require morningtrain/laravel-https

Usage

Deploy the config files.

$ php artisan vendor:publish

Update the following in your .env:

USE_SSL=true
REDIRECT_TO_HTTPS=true

Register the ForceSSL middleware as a global middleware in your App\Httk\Kernel class:

class Kernel extends HttpKernel
{
    /**
     * The application's middleware stack.
     *
     * @var array
     */
    protected $middleware = [
        \MorningTrain\Laravel\Https\Http\Middleware\ForceSSL::class,
    ];
}

Credits

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

641,106,524 9,700
laravel/framework

The Laravel Framework.

593,882,149 34,959
laravel/tinker

Powerful REPL for the Laravel framework.

502,645,077 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

418,291,778 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

394,964,158 4,660

Version History

Version Released PHP Laravel License
1.6.0 ^7.2|^8.0 ^5.8|^6.0|^7.0|^8.0|^9.0|^10.0 GPL-3.0-only
1.5.0 ^7.2|^8.0 ^5.8|^6.0|^7.0|^8.0|^9.0 GPL-3.0-only
1.4.1 ^7.2|^8.0 ^5.8|^6.0|^7.0|^8.0 GPL-3.0-only
1.4.0 ^7.2 ^5.8|^6.0|^7.0|^8.0 GPL-3.0-only
1.3.0 ^7.2 ^5.8|^6.0|^7.0 GPL-3.0-only