From 1a069989818a993e31a07edce7490f000b7297a2 Mon Sep 17 00:00:00 2001 From: Julian Prieber Date: Thu, 25 May 2023 20:28:48 +0200 Subject: [PATCH] Update web.php --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 32b9dc2..36fe39d 100755 --- a/routes/web.php +++ b/routes/web.php @@ -23,7 +23,7 @@ use App\Http\Controllers\InstallerController; // Prevents section below from being run by 'composer update' if(file_exists(base_path('storage/app/ISINSTALLED'))){ // generates new APP KEY if no one is set - if(EnvEditor::getKey('APP_KEY')==''){Artisan::call('key:generate');} + if(EnvEditor::getKey('APP_KEY')==''){try{Artisan::call('key:generate');} catch (exception $e) {}} // copies template meta config if none is present if(!file_exists(base_path("config/advanced-config.php"))){copy(base_path('storage/templates/advanced-config.php'), base_path('config/advanced-config.php'));}