Merge pull request #3710 from thisislawatts/fix/opt-out-of-forcing-https

fix: add opt of forceScheme(https)
pull/3861/head
daniel 2022-12-01 20:57:29 -07:00 zatwierdzone przez GitHub
commit f776c79284
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -40,7 +40,9 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot()
{
URL::forceScheme('https');
if (preg_match("/^https/", env('APP_URL')) || env('APP_ENV') === 'production') {
URL::forceScheme('https');
}
Schema::defaultStringLength(191);
Paginator::useBootstrap();
Avatar::observe(AvatarObserver::class);