Recent changes

This commit is contained in:
2020-11-02 21:44:05 +00:00
parent 06d1e0ad3f
commit 96aa01b9c6
508 changed files with 333 additions and 79 deletions

7
app/Providers/AppServiceProvider.php Normal file → Executable file
View File

@@ -61,6 +61,11 @@ class AppServiceProvider extends ServiceProvider
User::observe(UserObserver::class);
Application::observe(ApplicationObserver::class);
$this->app['request']->server->set('HTTPS', $this->app->environment() != 'local');
$https = ($this->app->environment() != 'local');
if(config('app.force_secure') && $this->app->environment() != 'production')
$https = true;
$this->app['request']->server->set('HTTPS', $https);
}
}