This commit is contained in:
Andras Bacsai
2023-05-26 14:05:58 +02:00
parent 97b336bff4
commit 820e432f92
4 changed files with 23 additions and 12 deletions

View File

@@ -24,15 +24,15 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot(): void
{
if ($this->app->environment('production')) {
try {
$settings = InstanceSettings::first();
if (Str::startsWith($settings->fqdn, 'https')) {
URL::forceScheme('https');
}
} catch (\Exception $e) {
// do nothing
}
}
// if ($this->app->environment('production')) {
// try {
// $settings = InstanceSettings::first();
// if (Str::startsWith($settings->fqdn, 'https')) {
// URL::forceScheme('https');
// }
// } catch (\Exception $e) {
// // do nothing
// }
// }
}
}