From 893b2dca89613bc1e6d502ec67bf4d253be8fd04 Mon Sep 17 00:00:00 2001 From: Boy132 Date: Sun, 12 May 2024 22:18:22 +0200 Subject: [PATCH] update drivers in setup command --- .../Commands/Environment/AppSettingsCommand.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/app/Console/Commands/Environment/AppSettingsCommand.php b/app/Console/Commands/Environment/AppSettingsCommand.php index 85e1f765e..0832031c6 100644 --- a/app/Console/Commands/Environment/AppSettingsCommand.php +++ b/app/Console/Commands/Environment/AppSettingsCommand.php @@ -11,23 +11,20 @@ class AppSettingsCommand extends Command { use EnvironmentWriterTrait; public const CACHE_DRIVERS = [ - 'redis' => 'Redis', - 'memcached' => 'Memcached', 'file' => 'Filesystem (recommended)', + 'redis' => 'Redis', ]; public const SESSION_DRIVERS = [ - 'redis' => 'Redis', - 'memcached' => 'Memcached', - 'database' => 'MySQL Database', 'file' => 'Filesystem (recommended)', + 'redis' => 'Redis', + 'database' => 'MySQL Database', 'cookie' => 'Cookie', ]; public const QUEUE_DRIVERS = [ + 'database' => 'MySQL Database (recommended)', 'redis' => 'Redis', - 'database' => 'MySQL Database', - 'sync' => 'Sync (recommended)', ]; protected $description = 'Configure basic environment settings for the Panel.'; @@ -86,7 +83,7 @@ class AppSettingsCommand extends Command array_key_exists($selected, self::SESSION_DRIVERS) ? $selected : null ); - $selected = config('queue.default', 'sync'); + $selected = config('queue.default', 'database'); $this->variables['QUEUE_CONNECTION'] = $this->option('queue') ?? $this->choice( 'Queue Driver', self::QUEUE_DRIVERS,