Force scheme https always

This commit is contained in:
Jérémy Munsch 2022-06-09 12:03:49 +02:00
parent 134e353a39
commit 79f9b67d3e
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC

View file

@ -29,9 +29,8 @@ class AppServiceProvider extends ServiceProvider
public function boot()
{
Paginator::useBootstrap();
if (config('app.env') !== 'local') {
URL::forceScheme('https');
}
URL::forceScheme('https');
if (config('app.env') === 'local') {
setlocale(LC_TIME, strtoupper(config('app.locale')) . "_" . config('app.locale') . '.utf8');