An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Add new console commands for root email change, root password reset, and service deletion
Andras Bacsai5e27b88bef63
diff --git a/app/Console/Commands/RootChangeEmail.php b/app/Console/Commands/RootChangeEmail.phpnew file mode 100644index 0000000000..27344f8a5f--- /dev/null+++ b/app/Console/Commands/RootChangeEmail.php@@ -0,0 +1,41 @@+<?php++namespace App\Console\Commands;++use App\Models\User;+use Illuminate\Console\Command;++class RootChangeEmail extends Command+{+ /**+ * The name and signature of the console command.+ *+ * @var string+ */+ protected $signature = 'root:change-email';++ /**+ * The console command description.+ *+ * @var string+ */+ protected $description = 'Change Root Email';++ /**+ * Execute the console command.+ */+ public function handle()+ {+ //+ $this->info('You are about to change the root user\'s email.');+ $email = $this->ask('Give me a new email for root user');+ $this->info('Updating root email...');+ try {+ User::find(0)->update(['email' => $email]);+ $this->info('Root user\'s email updated successfully.');+ } catch (\Exception $e) {+ $this->error('Failed to update root user\'s email.');+ return;+ }+ }+}diff --git a/app/Console/Commands/UsersResetRoot.php b/app/Console/Commands/RootResetPassword.phpsimilarity index 92%rename from app/Console/Commands/UsersResetRoot.phprename to app/Console/Commands/RootResetPassword.phpindex d72ef07d9c..df385002e4 100644--- a/app/Console/Commands/UsersResetRoot.php+++ b/app/Console/Commands/RootResetPassword.php@@ -8,14 +8,14 @@ use Illuminate\Support\Facades\Hash;use function Laravel\Prompts\password;-class UsersResetRoot extends Command+class RootResetPassword extends Command{/*** The name and signature of the console command.** @var string*/- protected $signature = 'users:reset-root';+ protected $signature = 'root:reset-password';/*** The console command description.diff --git a/app/Console/Commands/ResourcesDelete.php b/app/Console/Commands/ServicesDelete.phpsimilarity index 95%rename from app/Console/Commands/ResourcesDelete.phprename to app/Console/Commands/ServicesDelete.phpindex 84fbbeae6f..31ccfa9a9d 100644--- a/app/Console/Commands/ResourcesDelete.php+++ b/app/Console/Commands/ServicesDelete.php@@ -12,21 +12,21 @@ use function Laravel\Prompts\confirm;use function Laravel\Prompts\multiselect;use function Laravel\Prompts\select;-class ResourcesDelete extends Command+class ServicesDelete extends Command{/*** The name and signature of the console command.** @var string*/- protected $signature = 'resources:delete';+ protected $signature = 'services:delete';/*** The console command description.** @var string*/- protected $description = 'Delete a resource from the database';+ protected $description = 'Delete a service from the database';/*** Execute the console command.@@ -34,7 +34,7 @@ class ResourcesDelete extends Commandpublic function handle(){$resource = select(- 'What resource do you want to delete?',+ 'What service do you want to delete?',['Application', 'Database', 'Service', 'Server'],);if ($resource === 'Application') {diff --git a/config/sentry.php b/config/sentry.phpindex a090259586..efd043adfa 100644--- a/config/sentry.php+++ b/config/sentry.php@@ -7,7 +7,7 @@ return [// The release version of your application// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))- 'release' => '4.0.0-beta.145',+ 'release' => '4.0.0-beta.146',// When left empty or `null` the Laravel environment will be used'environment' => config('app.env'),diff --git a/config/version.php b/config/version.phpindex 9bbb31a9f6..8c257643ae 100644--- a/config/version.php+++ b/config/version.php@@ -1,3 +1,3 @@<?php-return '4.0.0-beta.145';+return '4.0.0-beta.146';diff --git a/versions.json b/versions.jsonindex d2bd0be29b..905876d7a5 100644--- a/versions.json+++ b/versions.json@@ -4,7 +4,7 @@"version": "3.12.36"},"v4": {- "version": "4.0.0-beta.145"+ "version": "4.0.0-beta.146"}}}