From 6621ece3a1d841608374a0213d6db8974411c38b Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Tue, 7 May 2024 22:13:46 -0400 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20ask=20for=20the=20author?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Environment/AppSettingsCommand.php | 15 +-------- config/compile.php | 31 ------------------- 2 files changed, 1 insertion(+), 45 deletions(-) delete mode 100644 config/compile.php diff --git a/app/Console/Commands/Environment/AppSettingsCommand.php b/app/Console/Commands/Environment/AppSettingsCommand.php index 3d8e8b1ed..704d47c91 100644 --- a/app/Console/Commands/Environment/AppSettingsCommand.php +++ b/app/Console/Commands/Environment/AppSettingsCommand.php @@ -61,30 +61,17 @@ class AppSettingsCommand extends Command public function handle(): int { $this->variables['APP_TIMEZONE'] = 'UTC'; - + if (empty(config('hashids.salt')) || $this->option('new-salt')) { $this->variables['HASHIDS_SALT'] = str_random(20); } - $this->output->comment(__('commands.appsettings.comment.author')); - $this->variables['APP_SERVICE_AUTHOR'] = $this->option('author') ?? $this->ask( - 'Egg Author Email', - config('panel.service.author', 'unknown@unknown.com') - ); - - if (!filter_var($this->variables['APP_SERVICE_AUTHOR'], FILTER_VALIDATE_EMAIL)) { - $this->output->error('The service author email provided is invalid.'); - - return 1; - } - $this->output->comment(__('commands.appsettings.comment.url')); $this->variables['APP_URL'] = $this->option('url') ?? $this->ask( 'Application URL', config('app.url', 'https://example.com') ); - $selected = config('cache.default', 'file'); $this->variables['CACHE_STORE'] = $this->option('cache') ?? $this->choice( 'Cache Driver', diff --git a/config/compile.php b/config/compile.php deleted file mode 100644 index cbf7739a6..000000000 --- a/config/compile.php +++ /dev/null @@ -1,31 +0,0 @@ - [ - ], - - /* - |-------------------------------------------------------------------------- - | Compiled File Providers - |-------------------------------------------------------------------------- - | - | Here you may list service providers which define a "compiles" function - | that returns additional files that should be compiled, providing an - | easy way to get common files from any packages you are utilizing. - | - */ - - 'providers' => [ - ], -];