Configure https when needed.
PHP >=7.2
$ composer require rockbuzz/lara-https
$ php artisan vendor:publish --provider="Rockbuzz\LaraHttps\ServiceProvider" --tag="config"
protected $middleware = [
\Rockbuzz\LaraHttps\ForceSSL::class,
...
];
The Lara Https is open-sourced software licensed under the MIT license.