fixes and stuff

This commit is contained in:
2024-09-11 16:21:51 +03:00
parent 8ac0567e66
commit f868219981
10 changed files with 141 additions and 115 deletions
+9
View File
@@ -16,6 +16,15 @@ class SetupDatabase extends Command
public function handle()
{
$dbConnection = config("lucent.database");
$databasePath = config("database.connections.$dbConnection.database");
if(file_exists($databasePath)){
$this->error("Database already exists.");
return 0;
}
touch($databasePath);
$this->tableUsers();
$this->tableRecords();
$this->tableRevisions();