Update web.php

This commit is contained in:
Julian Prieber 2023-05-25 20:28:48 +02:00
parent f939dcac88
commit 1a06998981
1 changed files with 1 additions and 1 deletions

View File

@ -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'));}