Update InstallerController.php

This commit is contained in:
Julian Prieber 2023-05-10 15:27:11 +02:00
parent 5e7f80b274
commit 73eef01056
1 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,8 @@ class InstallerController extends Controller
fclose($handleFile); fclose($handleFile);
} }
try{EnvEditor::addKey('ADMIN_EMAIL', $email);}catch(Exception $e){}
if(DB::table('users')->count() == '0'){ if(DB::table('users')->count() == '0'){
Schema::disableForeignKeyConstraints(); Schema::disableForeignKeyConstraints();
DB::table('users')->delete(); DB::table('users')->delete();