StripImageMetadata::strip($event->media)); // On Strato the domain points at the deployment folder and .htaccess forwards to current/public; // without a fixed root, some URLs (e.g. /sitemap.xml) would be generated with /current/public. if (! $this->app->environment('local', 'testing')) { URL::forceRootUrl(config('app.url')); URL::forceScheme(parse_url((string) config('app.url'), PHP_URL_SCHEME) ?: 'https'); } } }