From 3b04190cc5e2402510ae4191cbcc11a52dd6911e Mon Sep 17 00:00:00 2001 From: Julian Prieber <60265788+JulianPrieber@users.noreply.github.com> Date: Wed, 8 Jun 2022 18:51:14 +0200 Subject: [PATCH] Update web.php --- routes/web.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/routes/web.php b/routes/web.php index ef31519..8de5925 100755 --- a/routes/web.php +++ b/routes/web.php @@ -20,6 +20,9 @@ use App\Http\Controllers\UserController; // generates new APP KEY if no one is set if(EnvEditor::getKey('APP_KEY')==''){Artisan::call('key:generate');} + // copies template meta config if none is present + if(!file_exists(base_path("config/meta.php"))){copy('storage/templates/meta.php', 'config/meta.php');} + //Changes the homepage to a LittleLink Custom profile if set in the config if(env('HOME_URL') != '') { Route::get('/', [UserController::class, 'littlelinkhome'])->name('littlelink');