diff --git a/app/Console/Commands/RootChangeEmail.php b/app/Console/Commands/RootChangeEmail.php new file mode 100644 index 000000000..27344f8a5 --- /dev/null +++ b/app/Console/Commands/RootChangeEmail.php @@ -0,0 +1,41 @@ +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.php similarity index 92% rename from app/Console/Commands/UsersResetRoot.php rename to app/Console/Commands/RootResetPassword.php index d72ef07d9..df385002e 100644 --- a/app/Console/Commands/UsersResetRoot.php +++ b/app/Console/Commands/RootResetPassword.php @@ -8,14 +8,14 @@ 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.php similarity index 95% rename from app/Console/Commands/ResourcesDelete.php rename to app/Console/Commands/ServicesDelete.php index 84fbbeae6..31ccfa9a9 100644 --- a/app/Console/Commands/ResourcesDelete.php +++ b/app/Console/Commands/ServicesDelete.php @@ -12,21 +12,21 @@ 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 Command public 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.php index a09025958..efd043adf 100644 --- a/config/sentry.php +++ b/config/sentry.php @@ -7,7 +7,7 @@ // 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.php index 9bbb31a9f..8c257643a 100644 --- a/config/version.php +++ b/config/version.php @@ -1,3 +1,3 @@