1
0
mirror of https://github.com/LinkStackOrg/LinkStack.git synced 2025-04-26 07:58:44 +02:00

Update InstallerController.php

This commit is contained in:
Julian Prieber 2023-05-10 15:27:11 +02:00
parent 5e7f80b274
commit 73eef01056

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