Package Data | |
---|---|
Maintainer Username: | morningtrain |
Maintainer Contact: | mail@morningtrain.dk (Morningtrain) |
Package Create Date: | 2017-01-02 |
Package Last Update: | 2023-05-08 |
Language: | PHP |
License: | GPL-3.0-only |
Last Refreshed: | 2025-01-30 15:03:38 |
Package Statistics | |
---|---|
Total Downloads: | 2,842 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 4 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Via Composer
$ composer require morningtrain/laravel-https
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,
];
}