update drivers in setup command
This commit is contained in:
parent
e84b47410a
commit
893b2dca89
@ -11,23 +11,20 @@ class AppSettingsCommand extends Command
|
|||||||
{
|
{
|
||||||
use EnvironmentWriterTrait;
|
use EnvironmentWriterTrait;
|
||||||
public const CACHE_DRIVERS = [
|
public const CACHE_DRIVERS = [
|
||||||
'redis' => 'Redis',
|
|
||||||
'memcached' => 'Memcached',
|
|
||||||
'file' => 'Filesystem (recommended)',
|
'file' => 'Filesystem (recommended)',
|
||||||
|
'redis' => 'Redis',
|
||||||
];
|
];
|
||||||
|
|
||||||
public const SESSION_DRIVERS = [
|
public const SESSION_DRIVERS = [
|
||||||
'redis' => 'Redis',
|
|
||||||
'memcached' => 'Memcached',
|
|
||||||
'database' => 'MySQL Database',
|
|
||||||
'file' => 'Filesystem (recommended)',
|
'file' => 'Filesystem (recommended)',
|
||||||
|
'redis' => 'Redis',
|
||||||
|
'database' => 'MySQL Database',
|
||||||
'cookie' => 'Cookie',
|
'cookie' => 'Cookie',
|
||||||
];
|
];
|
||||||
|
|
||||||
public const QUEUE_DRIVERS = [
|
public const QUEUE_DRIVERS = [
|
||||||
|
'database' => 'MySQL Database (recommended)',
|
||||||
'redis' => 'Redis',
|
'redis' => 'Redis',
|
||||||
'database' => 'MySQL Database',
|
|
||||||
'sync' => 'Sync (recommended)',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $description = 'Configure basic environment settings for the Panel.';
|
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
|
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(
|
$this->variables['QUEUE_CONNECTION'] = $this->option('queue') ?? $this->choice(
|
||||||
'Queue Driver',
|
'Queue Driver',
|
||||||
self::QUEUE_DRIVERS,
|
self::QUEUE_DRIVERS,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user