Skip to content

Commit 1b348b4

Browse files
Change database option to argument and rename to connection
1 parent 3bf0ee5 commit 1b348b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Database/Console/DbCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class DbCommand extends Command
1313
*
1414
* @var string
1515
*/
16-
protected $signature = 'db {--database= : The database connection to use}';
16+
protected $signature = 'db {connection? : The database connection to use}';
1717

1818
/**
1919
* The console command description.
@@ -49,7 +49,7 @@ public function handle()
4949
public function getConnection()
5050
{
5151
$connection = $this->laravel['config']['database.connections.'.
52-
(($db = $this->option('database')) ?? $this->laravel['config']['database.default'])
52+
(($db = $this->argument('connection')) ?? $this->laravel['config']['database.default'])
5353
];
5454

5555
if (empty($connection)) {

0 commit comments

Comments
 (0)