Various changes to make things work again.

This commit is contained in:
James Cole
2017-09-10 09:46:50 +02:00
parent 1faa520168
commit 24ea20f769
4 changed files with 7 additions and 16 deletions

View File

@@ -15,6 +15,7 @@ namespace FireflyIII\Providers;
use Illuminate\Support\ServiceProvider;
use URL;
use Illuminate\Support\Facades\Schema;
/**
* Class AppServiceProvider
@@ -30,17 +31,7 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot()
{
// force root URL.
$forcedUrl = env('APP_FORCE_ROOT', '');
if (strlen(strval($forcedUrl)) > 0) {
URL::forceRootUrl($forcedUrl);
}
// force https urls
if (env('APP_FORCE_SSL', false)) {
URL::forceScheme('https');
}
Schema::defaultStringLength(191);
}
/**