}
if ($request->get('laravel', true)) {
+ $laravelSource = resource_path('tools/dockerwebcontainer/laravel');
+
$envPath = $www . '/.env';
$projectEnv = Dotenv::parse(file_get_contents($envPath));
`rm -rf $www;composer create-project laravel/laravel $www`;
Env::arrayToEnvFile($envPath . '.' . $env, $laravelEnv);
unlink($envPath);
unlink($envPath . '.example');
+ copy($laravelSource . '/AppServiceProvider.php', $www . '/Providers/AppServiceProvider.php');
}
$variables['$fixrights'] = implode("\n", $fixRights);
--- /dev/null
+<?php
+
+
+use Illuminate\Support\Facades\URL;
+use Illuminate\Support\ServiceProvider;
+
+class AppServiceProvider extends ServiceProvider
+{
+ /**
+ * Register any application services.
+ */
+ public function register(): void
+ {
+ //
+ }
+
+ /**
+ * Bootstrap any application services.
+ */
+ public function boot(): void
+ {
+ URL::forceScheme('https');
+ }
+}