PHP code example of csun-metalab / lumen-force-https
1. Go to this page and download the library: Download csun-metalab/lumen-force-https library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
csun-metalab / lumen-force-https example snippets
return [
/*
|--------------------------------------------------------------------------
| Force HTTPS
|--------------------------------------------------------------------------
|
| Whether to force HTTPS on all URLs or not. Default is false.
|
*/
'force_https' => env('FORCE_HTTPS', false),
];