force https
This commit is contained in:
@@ -34,7 +34,7 @@ class AppServiceProvider extends ServiceProvider
|
||||
);
|
||||
});
|
||||
|
||||
if (config('app.env') === 'production') {
|
||||
if (config('app.env') === 'production' || config('app.force_https')) {
|
||||
URL::forceScheme('https');
|
||||
}
|
||||
|
||||
|
||||
@@ -123,4 +123,5 @@ return [
|
||||
'store' => env('APP_MAINTENANCE_STORE', 'database'),
|
||||
],
|
||||
|
||||
'force_https' => env('FORCE_HTTPS', false),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user